vestasync/files/pushgit/pushgit_inotify_special.service

13 lines
320 B
SYSTEMD
Raw Permalink Normal View History

[Unit]
Description=Script triggered by file changes in a folder (including subfolders)
[Service]
ExecStartPre=systemctl stop pushgit_inotify.service
ExecStart=systemctl start pushgit_inotify.service
ExecStop=systemctl stop pushgit_inotify.service
Type=oneshot
RemainAfterExit=true
[Install]
WantedBy=multi-user.target