[xen-tools] Re: Outstanding bugs/requests for 3.0?

Neil Wilson neil at aldur.co.uk
Wed Nov 29 21:30:23 CET 2006


It handles the dependencies fine. What 'installDebianPackage' doesn't
do is install a false startstopdaemon, which means that cron (and
logrotate which is also missing) leave daemons running on the chroot.

(Incidentally the temporary file sytem you are using for mount points
likes to delete the entire contents of the partition if the 'umount'
fails due to a daemon lock).

I knocked together the following, nicked straight from debootstrap.

#
# Disable the start-stop-daemon
#
disableStartStopDaemon ()
{
    local prefix="$1"
    assert $LINENO "${prefix}"
    local daemonfile="${prefix}/sbin/start-stop-daemon"

    mv "${daemonfile}" "${daemonfile}.REAL"
    echo \
"#!/bin/sh
echo
echo \"Warning: Fake start-stop-daemon called, doing nothing\"" >
"${daemonfile}"
    chmod 755 "${daemonfile}"
    logMessage "Start Stop Daemon switched off."
}

#
# Enable the start-stop-daemon
#
enableStartStopDaemon ()
{
    local prefix=$1
    assert $LINENO "${prefix}"
    local daemonfile="${prefix}/sbin/start-stop-daemon"

    mv "${daemonfile}.REAL" "${daemonfile}"
    logMessage "Start Stop Daemon switched on."
}


On 11/29/06, Steve Kemp <steve at steve.org.uk> wrote:

>   Surely that can be handled in an ubuntu hook, or role with only
>  a call to "installDebianPackage cron"?  That should get the
>  dependencies etc correct?





More information about the xen-tools-discuss mailing list