-
-
Save Alives/59cc7dce393338f4bc71b93b86c1dcde to your computer and use it in GitHub Desktop.
systemd-service file for lsyncd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=Live Syncing (Mirror) Daemon | |
After=network.target | |
[Service] | |
Restart=always | |
Type=simple | |
Nice=19 | |
#EnvironmentFile=-/etc/default/lsyncd | |
#ExecStart=/usr/bin/sh -c 'eval `/usr/bin/lsyncd -nodaemon $LSYNCD_OPTIONS /etc/lsyncd/lsyncd.conf.lua`' | |
ExecStart=/usr/bin/lsyncd -nodaemon -pidfile /run/lsyncd.pid /etc/lsyncd/lsyncd.conf.lua | |
ExecReload=/bin/kill -HUP $MAINPID | |
PIDFile=/run/lsyncd.pid | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment