--- /root/common.sh.orig 2012-05-09 13:53:15.973569737 +0200 +++ /usr/lib/xen-tools/common.sh 2012-05-09 13:53:42.501570939 +0200 @@ -121,14 +121,16 @@ { local prefix="$1" assert "$LINENO" "${prefix}" - local daemonfile="${prefix}/sbin/start-stop-daemon" + for starter in start-stop-daemon initctl; do + local daemonfile="${prefix}/sbin/${starter}" - mv "${daemonfile}" "${daemonfile}.REAL" - echo '#!/bin/sh' > "${daemonfile}" - echo "echo \"Warning: Fake start-stop-daemon called, doing nothing\"" >> "${daemonfile}" + mv "${daemonfile}" "${daemonfile}.REAL" + echo '#!/bin/sh' > "${daemonfile}" + echo "echo \"Warning: Fake ${starter} called, doing nothing\"" >> "${daemonfile}" - chmod 755 "${daemonfile}" - logMessage "start-stop-daemon disabled / made a stub." + chmod 755 "${daemonfile}" + logMessage "${starter} disabled / made a stub." + done }