X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=debian%2Finit.d;h=14d86146cc87ab5b40940f2666afd71650e61c20;hb=fe9a15c4d35eb463d71dfa3bd712fa16a261e567;hp=6f0e2c9c2b28043a67bdde9a83e3d92b78b07362;hpb=c4b524da8118d47a9642465e5e4b7cefa44043b7;p=debian%2Fgcpegg diff --git a/debian/init.d b/debian/init.d index 6f0e2c9..14d8614 100644 --- a/debian/init.d +++ b/debian/init.d @@ -2,8 +2,8 @@ ### BEGIN INIT INFO # Provides: gcpegg -# Required-Start: $local_fs -# Required-Stop: +# Required-Start: $local_fs $remote_fs +# Required-Stop: $local_fs $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start GCP EGG software on virtual terminal 8 @@ -11,6 +11,8 @@ set -e +. /lib/lsb/init-functions + test -x /usr/sbin/eggsh || exit 0 test -d /var/spool/gcpegg || exit 0 @@ -19,7 +21,7 @@ cd /var/spool/gcpegg case "$1" in start) echo -n "Starting GCP EGG software on virtual terminal 8: eggsh" - /usr/bin/openvt -f -c 8 /usr/sbin/eggsh + openvt /usr/sbin/eggsh echo "." ;; stop) @@ -30,7 +32,7 @@ case "$1" in reload|force-reload|restart) echo -n "Restarting GCP EGG software on virtual terminal 8..." start-stop-daemon --stop --quiet --oknodo --exec /usr/sbin/eggsh - /usr/bin/openvt -f -c 8 /usr/sbin/eggsh + openvt /usr/sbin/eggsh echo "done." ;; purge)