add centos 7 auto start

This commit is contained in:
xinghuo 2018-07-07 23:02:03 +08:00
parent cd0e5d4afd
commit 0b2a1625e2
1 changed files with 14 additions and 0 deletions

14
gopub.service Normal file
View File

@ -0,0 +1,14 @@
[Unit]
Description=gopub
After=network.target remote-fs.target nss-lookup.target
[Service]
Type=forking
ExecStart=/www/server/gopub/control start
ExecReload=/www/server/gopub/control restart
ExecStop=/www/server/gopub/control stop
User=root
Group=root
[Install]
WantedBy=multi-user.target