Skip to content

Instantly share code, notes, and snippets.

@YokiToki
Created Mar 15, 2018
Embed
What would you like to do?
#! /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