Skip to content

Instantly share code, notes, and snippets.

@yawara
Created June 27, 2016 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yawara/323eb1933059d874c6edc35a9135bb03 to your computer and use it in GitHub Desktop.
Save yawara/323eb1933059d874c6edc35a9135bb03 to your computer and use it in GitHub Desktop.
upstart init script for btsync
description "BitTorrent Sync"
author "Yawara ISHIDA"
start on filesystem or runlevel [2345]
stop on shutdown
script
CONFIG="/etc/btsync/btsync.conf"
BTSYNC="/usr/lib/btsync-core/btsync"
exec su ywr -c "$BTSYNC --nodaemon --config $CONFIG"
end script
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment