tags 565507 + patch
thanks
Here is a patch to implement the status command using the function
provided by lsb-base. In addition to the init.d script change, the
package will have to depend on lsb-base for the
/lib/lsb/init-functions file.
Happy hacking,
--
Petter Reinholdtsen
--- /etc/init.d/autofs.orig 2010-02-27 10:07:55.000000000 +0100
+++ /etc/init.d/autofs 2010-02-27 10:25:43.000000000 +0100
@@ -31,6 +31,8 @@
PATH=/sbin:/usr/sbin:/bin:/usr/bin
export PATH
+. /lib/lsb/init-functions
+
#
# load customized configuation settings
#
@@ -146,6 +147,9 @@
reload)
reload
;;
+ status)
+ status_of_proc "$DAEMON" $prog && exit 0 || exit $?
+ ;;
*)
echo $"Usage: $0
{start|forcestart|stop|restart|forcerestart|reload|force-reload}"
exit 1;