This commit is contained in:
14
File/Service/sersync2.service
Normal file
14
File/Service/sersync2.service
Normal file
@@ -0,0 +1,14 @@
|
||||
# 作者: 丁辉
|
||||
[Unit]
|
||||
Description=Sersync2 Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/local/sersync/sersync2 -dro /usr/local/sersync/confxml.xml
|
||||
ExecStop=/usr/bin/pkill sersync2
|
||||
ExecReload=/usr/bin/pkill sersync2 && /usr/local/sersync/sersync2 -dro /usr/local/sersync/confxml.xml
|
||||
Restart=on-abnormal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user