Package: initscripts
Version: 2.86.ds1-1
Severity: wishlist
Tag: patch

enhance the debian skeleton initscript with informational user 
feedback regarding the following actions: 
start and stop action of the skeleton init script when daemon 
already running or not running at all

seen in the gdm init scripts.
thanks for your consideration + best regards.

--
maks

--- debian/initscripts/etc/init.d/skeleton.orig 2005-02-22 19:41:32.000000000 
+0100
+++ debian/initscripts/etc/init.d/skeleton      2005-02-22 19:42:41.000000000 
+0100
@@ -36,7 +36,8 @@
 #
 d_start() {
        start-stop-daemon --start --quiet --pidfile $PIDFILE \
-               --exec $DAEMON
+               --exec $DAEMON \
+               || echo -n " already running"
 }
 
 #
@@ -44,7 +45,8 @@
 #
 d_stop() {
        start-stop-daemon --stop --quiet --pidfile $PIDFILE \
-               --name $NAME
+               --name $NAME \
+               || echo -n " not running"
 }
 
 #

Reply via email to