On Wed, Mar 13, 2002 at 09:59:16AM -0600, Adam Heath wrote:
> start-stop-daemon checks that the binary on disk is the same as the binary
> currently running. This fails, when the binary has been upgraded.
Try this if you don't like the start-stop-daemon problem:
#!/bin/sh
#
# queue command requests for start-stop-daemon
# DISLCAIMER: NOT TESTED YET
#
queue=/tmp/start-stop-daemon
ssdaemon=/sbin/start-stop-daemon
queuecmd="$ssdaemon $@"
mkdir -p $queue
cat << EOCMD > $queue/$$.sh
#!/bin/sh -e
ssdaemon=$ssdaemon
queuecmd="$ssdaemon $@"
echo "Running the following command as requested by process $$"
echo "$ssdaemon as requested by process $$"
eval $queuecmd
EOCMD
echo "Queued request for start-stop-daemon in $queue."
# End of script
Then, divert the start-stop-daemon locally. Run your apt-get commands.
Remove the diversion, and run the queue scripts.
--
Chad Walstrom <chewie@wookimus.net> | a.k.a. ^chewie
http://www.wookimus.net/ | s.k.a. gunnarr
Get my public key, ICQ#, etc. $(mailx -s 'get info' chewie@wookimus.net)
Attachment:
pgpTm8g2yKZi3.pgp
Description: PGP signature