Skip to content

Instantly share code, notes, and snippets.

@YokiToki
Created March 15, 2018 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save YokiToki/01ed1b2738ae473044f4a45e79ca9dfb to your computer and use it in GitHub Desktop.
Save YokiToki/01ed1b2738ae473044f4a45e79ca9dfb to your computer and use it in GitHub Desktop.
#! /bin/sh
# /etc/init.d/ices
#
case "$1" in
start)
echo "Starting IceS..."
screen -A -m -d -S ices ices -c /usr/local/etc/ices.conf
echo "IceS started"
;;
stop)
echo "Stopping IceS..."
screen -S ices -X quit
echo "IceS stopped"
;;
*)
echo "Usage: service ices {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