Skip to content

Instantly share code, notes, and snippets.

@yusufhm
Created December 9, 2014 00:48
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 yusufhm/e5427129bf30fb9b2065 to your computer and use it in GitHub Desktop.
Save yusufhm/e5427129bf30fb9b2065 to your computer and use it in GitHub Desktop.
Ubuntu upstart script for btsync
# btsync - Bittorent Sync
description "btsync - Keep Bittorent Sync running"
start on filesystem
stop on shutdown
respawn
expect fork
exec start-stop-daemon --chuid ubuntu:ubuntu --start --make-pidfile --pidfile /var/run/btsync.pid --exec /home/ubuntu/apps/btsync/btsync >> /var/log/btsync.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment