Beim Entfernen wird aufgerufen:
Der Zustand der alten Sxx und Kxx wird entweder aus einem backup wiederhergestellt,
falls nicht vorhanden wird diese function ausgeführt, die die postinst der init.d/-Skripte und damit deren update-rc.d-Befehle ausführt:
Code: Alles auswählen
regenerate_sysv_sequence() {
packages="$(dpkg -S $(find /etc/init.d -type f -perm /+x) 2>/dev/null | cut -d: -f1 | sort -u)"
for p in $packages ; do
# Make sure it is installed
if dpkg --get-selections $p | grep -qw install ; then
# Only fix packages with init.d scripts
if dpkg -L $p | grep -q /etc/init.d/ ; then
brokenpackages="$brokenpackages $p"
fi
fi
done
# Remove the old sequence
find /etc/rc[S0123456].d -type l -print0 | xargs -0 rm
# As the sysv-rc update-rc.d script do not check dependencies, it
# is enough to run through these scripts once.
for p in $brokenpackages ; do
if [ -x /var/lib/dpkg/info/$p.postinst ] ; then
echo "info: running package $p postinst"
DEBCONF_FRONTEND=noninteractive \
/var/lib/dpkg/info/$p.postinst configure < /dev/null || true
else
echo "error: package $p got init.d script but no postinst"
fi
done
# Using postinst directly might mess up the terminal. Try to recover
reset || true
}
------------------------------------------------------
viewtopic.php?f=15&t=66551&hilit=initng ... 15#p703980
Ich bin von insserv sehr angetan und benutze diese Kombination:
/usr/local/sbin/sysv-rc-conf.sh und /usr/local/sbin/yast :
Code: Alles auswählen
#!/bin/sh
SYSV_RC_CONF=/usr/sbin/sysv-rc-conf
case $0 in
*ast)
SYSV_RC_CONF="/usr/sbin/sysv-rc-conf -p"
;;
*)
;;
esac
$SYSV_RC_CONF -s S1234560 --Purge
insserv # [-v]
('CONCURRENCY=startpar' bring leider nur ein paar Sekunden, vermutlich habe ich nicht genug Dienste?)