Created
January 18, 2017 21:24
-
-
Save aimeemikaelac/32318df47f15bbc825e9da7c88610c60 to your computer and use it in GitHub Desktop.
resilio sync systemd service
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=resilio sync | |
[Service] | |
Type=forking | |
ExecStartPre=/bin/mkdir -p /var/run/resilio | |
ExecStartPre=/bin/touch /var/run/resilio/resilio.pid | |
ExecStartPre=/bin/chmod 777 /var/run/resilio | |
ExecStartPre=/bin/chmod 777 /var/run/resilio/resilio.pid | |
ExecStart=/bin/su -c '/home/<user>/resilio/rslsync --config /home/<user>/resilio/resilio.conf' <user> | |
PIDFile=/var/run/resilio/resilio.pid | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment