Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- # /etc/init.d/btsync
- #
- # Start or Stop BT Sync
- BTSYNC_USER="btsync"
- DAEMON=/home/btsync/bin/btsync
- case "$1" in
- start)
- echo "Starting btsync..."
- start-stop-daemon -b -o -c $BTSYNC_USER -S -u $BTSYNC_USER -x $DAEMON
- ;;
- stop)
- echo "Stopping btsync..."
- start-stop-daemon -o -c $BTSYNC_USER -K -u $BTSYNC_USER -x $DAEMON
- # pkill btsync
- ;;
- *)
- echo "Usage: /etc/init.d/btsync {start|stop}"
- exit 1
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement