Created
December 24, 2016 20:17
-
-
Save justlaputa/4eaed3bd64bd09425b646bca8a45c1fe to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$ 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