Skip to content

Instantly share code, notes, and snippets.

@justlaputa
Last active December 24, 2016 20:20
Show Gist options
  • Save justlaputa/1e21a4e34f4de634292ee498fd0f6f3e to your computer and use it in GitHub Desktop.
Save justlaputa/1e21a4e34f4de634292ee498fd0f6f3e 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment