CentOS7.4 Jexus开机启动脚本
[Unit]
Description=jexus – high performance web server
Documentation=http://www.jexus.org
After=network-online.target remote-fs.target nss-lookup.target
Wants=network-online.target
[Service]
Type=forking
PIDFile=/var/run/jexus/jws.pid
ExecStart=/usr/jexus/jws start
ExecReload=/usr/jexus/jws restart
ExecStop=/usr/jexus/jws stop
[Install]
WantedBy=multi-user.target
复制上面文本到/usr/lib/systemd/system/jexus.service 保存
执行
systemctl enable jexus
systemctl start jexus
systemctl stop jexus
systemctl restart jexus
即可