Last active
January 3, 2016 10:09
-
-
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
This file contains 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
#! /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