Skip to content

Instantly share code, notes, and snippets.

@hostmaster
Last active August 29, 2015 14:07
Show Gist options
  • Save hostmaster/cab72b736115d72c6bf0 to your computer and use it in GitHub Desktop.
Save hostmaster/cab72b736115d72c6bf0 to your computer and use it in GitHub Desktop.
/storage/.config/system.d/btsync.service
#
# systemctl enable btsync.service
# systemctl start btsync.service
#
# cat /etc/systemd/system/btsync.service
[Unit]
Description=BTSync
Requires=network-online.service
After=network-online.service
Before=xbmc.service
[Service]
MemoryAccounting=true
MemoryLimit=128M
#LimitRSS=128M
CPUShares=512
Restart=always
RestartSec=10
ExecStart=/storage/.btsync/btsync --config /storage/.btsync/btsync.conf --nodaemon
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment