kundratj@batsheba ~ $ /etc/init.d/sshd status * /sbin/runscript.sh: must be root to run init scripts Current method is obviously broken because the $* contains the name of the whole init script. This breaks for example automated Nagios sensors checking for health of services because NRPE typically runs as a non-privileged user. Patch will be attached.
Created attachment 212007 [details, diff] allow-quiet-for-initscript-status.patch
Comment on attachment 212007 [details, diff] allow-quiet-for-initscript-status.patch this change is just as fragile
http://sources.gentoo.org/baselayout/branches/baselayout-1_12/sbin/runscript.sh?r1=3162&r2=3163