Skip to content

Instantly share code, notes, and snippets.

@kasramp

kasramp/test.sh Secret

Created August 4, 2020 18:28
Show Gist options
  • Save kasramp/fbfef354e3b422717f6bfb1ad67dd682 to your computer and use it in GitHub Desktop.
Save kasramp/fbfef354e3b422717f6bfb1ad67dd682 to your computer and use it in GitHub Desktop.
#! /bin/sh
# /etc/init.d/btsync
#
# Carry out specific functions when asked to by the system
case "$1" in
start)
/USERACCOUNT/.btsync/btsync --config /USERACCOUNT/.btsync/btsync.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