This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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