Skip to content

Instantly share code, notes, and snippets.

@naegelin
naegelin / btsync-init
Last active August 29, 2015 14:10 — forked from lottspot/btsync-init
#!/bin/bash
BIN='/usr/local/bin/btsync'
CONF='/usr/local/etc/btsync/sync.conf'
PID='/var/run/btsync/btsync.pid'
PIDMATCH=true
SERVICE=$(basename $0)
test $(id -u) -ne 0 && echo "This is for root." >&2 && exit 1
main(){