Created
June 27, 2016 22:51
-
-
Save yawara/323eb1933059d874c6edc35a9135bb03 to your computer and use it in GitHub Desktop.
upstart init script for btsync
This file contains hidden or 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
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