Skip to content

Instantly share code, notes, and snippets.

@aimeemikaelac
Created January 18, 2017 21:24
Show Gist options
  • Save aimeemikaelac/32318df47f15bbc825e9da7c88610c60 to your computer and use it in GitHub Desktop.
Save aimeemikaelac/32318df47f15bbc825e9da7c88610c60 to your computer and use it in GitHub Desktop.
resilio sync systemd service
[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