Skip to content

Instantly share code, notes, and snippets.

@ety001
Created December 10, 2014 13:25
Show Gist options
  • Save ety001/f9d3e3e85ef20f33e9a3 to your computer and use it in GitHub Desktop.
Save ety001/f9d3e3e85ef20f33e9a3 to your computer and use it in GitHub Desktop.
#! /bin/sh
case "$1" in
start)
/usr/local/bin/ssserver -c /etc/config.json > /dev/null 2>&1 &
;;
stop)
pkill -9 ssserver
;;
restart)
pkill -9 ssserver
/usr/local/bin/ssserver -c /etc/config.json > /dev/null 2>&1 &
;;
esac
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment