Skip to content

Instantly share code, notes, and snippets.

@ryanbarrett
Last active January 3, 2016 10:09
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 ryanbarrett/8447878 to your computer and use it in GitHub Desktop.
Save ryanbarrett/8447878 to your computer and use it in GitHub Desktop.
Bittorrent Sync btsync Ubuntu Autostart script init.d To Export config file sample: ./btsync --dump-sample-config > sync.conf
#! /bin/sh
# /etc/init.d/btsync
#
# Carry out specific functions when asked to by the system
case "$1" in
start)
/etc/btsync/btsync --config /etc/btsync/sync.conf
;;
stop)
killall btsync
;;
*)
echo "Usage: /etc/init.d/btsync {start|stop}"
exit 1
;;
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment