[Pkg-sysvinit-commits] r1362 - in sysvinit/trunk/debian: . initscripts/etc/init.d

Petter Reinholdtsen pere at alioth.debian.org
Mon Jun 29 18:55:57 UTC 2009


Author: pere
Date: 2009-06-29 18:55:56 +0000 (Mon, 29 Jun 2009)
New Revision: 1362

Modified:
   sysvinit/trunk/debian/changelog
   sysvinit/trunk/debian/initscripts/etc/init.d/skeleton
Log:
Add status argument support to init.d/skeleton.

Modified: sysvinit/trunk/debian/changelog
===================================================================
--- sysvinit/trunk/debian/changelog	2009-06-29 17:51:54 UTC (rev 1361)
+++ sysvinit/trunk/debian/changelog	2009-06-29 18:55:56 UTC (rev 1362)
@@ -24,6 +24,7 @@
   * Fix computing of runlevel in init.d/rc by allowing A-Z in init
     scripts names (like NetworkManager).  Patch from Loic Minier
     and Ubuntu.
+  * Add status argument support to init.d/skeleton.
 
  -- Kel Modderman <kel at otaku42.de>  Thu, 25 Jun 2009 08:27:16 +1000
 

Modified: sysvinit/trunk/debian/initscripts/etc/init.d/skeleton
===================================================================
--- sysvinit/trunk/debian/initscripts/etc/init.d/skeleton	2009-06-29 17:51:54 UTC (rev 1361)
+++ sysvinit/trunk/debian/initscripts/etc/init.d/skeleton	2009-06-29 18:55:56 UTC (rev 1362)
@@ -114,6 +114,10 @@
 		2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
 	esac
 	;;
+  status)
+       status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+       ;;
+   *)
   #reload|force-reload)
 	#
 	# If do_reload() is not implemented then leave this commented out
@@ -147,7 +151,7 @@
 	;;
   *)
 	#echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
-	echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+	echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
 	exit 3
 	;;
 esac




More information about the Pkg-sysvinit-commits mailing list