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

From: Neil Wilson <neil_at_aldur.co.uk>
Date: Wed, 29 Nov 2006 20:30:23 +0000
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?
Received on Wed Nov 29 2006 - 20:31:51 GMT

Mailing list overview.