X-Git-Url: https://git.gag.com/?p=debian%2Fgcpegg;a=blobdiff_plain;f=debian%2Finit.d;h=6f0e2c9c2b28043a67bdde9a83e3d92b78b07362;hp=399271989caa91e179964f6d07aada2c9dce37c9;hb=c4b524da8118d47a9642465e5e4b7cefa44043b7;hpb=52cf3603395848b52cb2c5078db1dc90a35ad2c2 diff --git a/debian/init.d b/debian/init.d index 3992719..6f0e2c9 100644 --- a/debian/init.d +++ b/debian/init.d @@ -1,5 +1,14 @@ #!/bin/sh +### BEGIN INIT INFO +# Provides: gcpegg +# Required-Start: $local_fs +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Start GCP EGG software on virtual terminal 8 +### END INIT INFO + set -e test -x /usr/sbin/eggsh || exit 0 @@ -24,8 +33,13 @@ case "$1" in /usr/bin/openvt -f -c 8 /usr/sbin/eggsh echo "done." ;; + purge) + echo -n "Purging all previously generated data by GCP EGG" + rm -r /var/spool/gcpegg/* + echo "done." + ;; *) - echo "Usage: /etc/init.d/gcpegg {start|stop|reload|force-reload|restart}" + echo "Usage: /etc/init.d/gcpegg {start|stop|reload|force-reload|restart|purge}" exit 1 ;; esac