Skip to content

Instantly share code, notes, and snippets.

@justlaputa
Created December 24, 2016 20:17
Show Gist options
  • Save justlaputa/4eaed3bd64bd09425b646bca8a45c1fe to your computer and use it in GitHub Desktop.
Save justlaputa/4eaed3bd64bd09425b646bca8a45c1fe to your computer and use it in GitHub Desktop.
$ sudo systemctl cat resilio-sync.service
# /lib/systemd/system/resilio-sync.service
[Unit]
Description=Resilio Sync service
Documentation=http://help.getsync.com/
After=network.target network-online.target
[Service]
Type=forking
User=rslsync
Group=rslsync
UMask=0002
Restart=on-failure
PermissionsStartOnly=true
PIDFile=/var/run/resilio-sync/sync.pid
ExecStartPre=/bin/mkdir -p /var/run/resilio-sync
ExecStartPre=/bin/chown -R rslsync:rslsync /var/run/resilio-sync
ExecStart=/usr/bin/rslsync --config /etc/resilio-sync/config.json
[Install]
WantedBy=multi-user.target
# /etc/systemd/system/resilio-sync.service.d/override.conf
[Service]
User=laputa
Group=laputa
PIDFile=/home/laputa/.config/resilio-sync/sync.pid
ExecStartPre=
ExecStart=
ExecStart=/usr/bin/rslsync --config /home/laputa/.config/resilio-sync/config.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment