This commit is contained in:
14
File/Service/inotify.service
Normal file
14
File/Service/inotify.service
Normal file
@@ -0,0 +1,14 @@
|
||||
# 作者: 丁辉
|
||||
[Unit]
|
||||
Description=Inotify Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/opt/rsync_inotify.sh
|
||||
ExecStop=pkill -f "rsync_inotify.sh"
|
||||
ExecReload=/opt/rsync_inotify.sh && pkill -f "rsync_inotify.sh"
|
||||
Restart=on-abnormal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
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