[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#832111: Please add a fake "status" function to init script (like in procps)



Package: sysfsutils
Version: 2.1.0+repack-4
Severity: wishlist
Tags: patch

Hi,

sysfsutils' init script lacks a "status" function. This disturbs some
third-party software (in my case, saltstack) which interpret it as an
error and think that the "service" is not running.

procps implemented a fake "status" function in its init script to
address this; please do the same for sysfsutils.

Attached is a very small patch doing just that.

Regards,

-- 
Raphaël Halimi
diff --git a/debian/sysfsutils.init b/debian/sysfsutils.init
index b0610ed..21bf713 100644
--- a/debian/sysfsutils.init
+++ b/debian/sysfsutils.init
@@ -73,8 +73,10 @@ case "$1" in
 	;;
     stop)
 	;;
+    status)
+	;;
     *)
-	echo "Usage: /etc/init.d/sysfsutils {start|stop|force-reload|restart}"
+	echo "Usage: /etc/init.d/sysfsutils {start|stop|force-reload|restart|status}"
 	exit 1
 	;;
 esac

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: