东方通自启服务
[Unit]
Description=TongWeb Server
After=network.target
[Service]
Type=forking
Environment="JAVA_HOME=/usr/java"
#ExecStart=/usr/local/tongweb/bin/startserver.sh restart
ExecStart=/usr/local/tongweb/bin/boot.sh
ExecStop=/usr/local/tongweb/bin/stopserver.sh force
PrivateTmp=false
# Disable service start and stop timeout logic of systemd for tongweb service.
TimeoutSec=0
[Install]
WantedBy=multi-user.target
方法1:在/usr/lib/systemd/system下面创建tongweb.service
方法2:也可在tongweb目录下的bin下面,直接运行installservice.sh
标签:通自启,bin,服务,service,tongweb,东方,usr,local From: https://www.cnblogs.com/niway/p/17170642.html