Sorry, naturally I found a typo in the script just after sending it:
Index: start-stop-daemon.runit
===================================================================
--- start-stop-daemon.runit (revision 1347)
+++ start-stop-daemon.runit (working copy)
@@ -71,7 +71,7 @@
read -A cmdline </proc/$PPID/cmdline
while [[ -n "$cmdline[1]" ]]; do
[[ "${cmdline[1]:h}" = /etc/init.d ]] && svname=${cmdline[1]:t} && break
- if [[ "${cmdline[1]:h}" =~ /etc/rc[0-6]S\.d ]]; then
+ if [[ "${cmdline[1]:h}" =~ /etc/rc[0-6S]\.d ]]; then
svname=${cmdline[1]:t}
svname=${svname#[SK][0-9][0-9]}
break
AndrĂ¡s
--
My grandfather has the heart of a lion and a lifetime ban from the local zoo.