Adding "status" command handler for init script.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Thu, 2 Oct 2014 19:54:48 +0000 (22:54 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Thu, 2 Oct 2014 19:54:48 +0000 (22:54 +0300)
debian/lxdm.init

index 63a66bf..f774065 100644 (file)
@@ -104,6 +104,10 @@ case "$1" in
     /etc/init.d/lxdm restart
   ;;
 
+  status)
+    status_of_proc -p $PIDFILE $DAEMON lxdm
+  ;;
+
   *)
     echo "Usage: /etc/init.d/lxdm {start|stop|restart|force-reload}"
     exit 1