Henry Gunter wrote:
Gerrit Pape wrote:
On Thu, Apr 10, 2008 at 07:48:07AM -0500, Henry Gunter wrote:
It's important for the daemontools-run package that the added SV
inittab
entry comes into effect after the package installation is completed.
That's why it does 'kill -s HUP 1' to signal sysvinit to re-read
/etc/inittab, and so starts up /usr/bin/svscanboot.
Does it help if you configure the vserver with '--initstyle plain'?
I added file "style" containing "plain" into vserver/apps/init/ ,
stoped and restarted vserver tried to install daemontools-run.
vserver:/# apt-get install daemontools-run
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
daemontools-run
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/9200B of archives.
After this operation, 94.2kB of additional disk space will be used.
Selecting previously deselected package daemontools-run.
(Reading database ... 14920 files and directories currently installed.)
Unpacking daemontools-run (from
.../daemontools-run_1%3a0.76-2_all.deb) ...
Setting up daemontools-run (1:0.76-2) ...
Adding SV inittab entry...
dpkg: error processing daemontools-run (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
daemontools-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
Okay, thanks for trying. Can you please do the following and post the
output? If that doesn't help, I'll try to reproduce and to provide a
solution within the next days.
# sed -e '/#-- daemontools-run begin/,/#-- daemontools-run end/d' \
/etc/inittab > /etc/inittab'{new}' &&
mv -f /etc/inittab'{new}' /etc/inittab
# sh -x /var/lib/dpkg/info/daemontools-run.postinst configure
Thanks, Gerrit.
vserver:/# sed -e '/#-- daemontools-run begin/,/#-- daemontools-run
end/d' /etc/inittab > /etc/inittab'{new}' && mv -f /etc/inittab'{new}'
/etc/inittab
vserver:/# sh -x /var/lib/dpkg/info/daemontools-run.postinst configure
+ set -e
+ test configure = configure
+ test -z ''
++ ls -1 /etc/service/
+ test -n ''
+ for i in /var/service /service /var/lib/svscan
+ test -d /var/service
+ continue
+ for i in /var/service /service /var/lib/svscan
+ test -d /service
+ continue
+ for i in /var/service /service /var/lib/svscan
+ test -d /var/lib/svscan
+ continue
+ grep -q '#-- daemontools-run begin' /etc/inittab
+ grep -q SV:123456:respawn:/command/svscanboot /etc/inittab
+ grep -q SV:123456:respawn:/usr/bin/svscanboot /etc/inittab
+ test -z ''
+ grep '^SV:' /etc/inittab
+ grep '^SV:' /etc/inittab
+ echo 'Adding SV inittab entry...'
Adding SV inittab entry...
+ cp /etc/inittab '/etc/inittab{new}'
+ cat
+ mv -f '/etc/inittab{new}' /etc/inittab
+ exec kill -s HUP 1
My initial reason for installing daemontools daemontools-run was
to run djbdns in a vserver.
djbdns now starts.
vserver:/etc/service# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1868 688 ? S 18:12 0:00 init [2]
root 9465 0.0 0.0 1600 584 ? Ss 18:12 0:00
/sbin/syslogd
root 9502 0.0 0.0 3184 756 ? Ss 18:12 0:00
/usr/sbin/cron
root 9508 0.0 0.0 2540 1200 ? Ss 18:12 0:00
/bin/sh /usr/bin/svscanboot
root 9510 0.0 0.0 1556 368 ? S 18:12 0:00
svscan /etc/service
root 9511 0.0 0.0 1384 276 ? S 18:12 0:00
readproctitle service errors: ........root 10244 0.0 0.0
120 36 pts/0 R+ 18:23 0:00 login
root 10268 0.0 0.0 4000 1700 pts/1 Ss 18:23 0:00
/bin/bash -login
root 10303 0.0 0.0 1396 328 ? S 18:33 0:00
supervise dnscache
root 10304 0.0 0.0 1392 324 ? S 18:33 0:00
supervise log
dnslog 10305 0.0 0.0 1536 372 ? S 18:33 0:00
multilog t ./main
dnscache 10306 0.0 0.0 2824 1580 ? S 18:33 0:00
/usr/bin/dnscache
root 10311 0.0 0.0 1392 324 ? S 18:33 0:00
supervise tinydns
root 10312 0.0 0.0 1392 324 ? S 18:33 0:00
supervise log
tinydns 10313 0.0 0.0 1512 312 ? S 18:33 0:00
/usr/bin/tinydns
dnslog 10314 0.0 0.0 1532 368 ? S 18:33 0:00
multilog t ./main
root 10315 0.0 0.0 3468 996 pts/1 R+ 18:33 0:00 ps aux
However apt still thinks that daemontools-run is not completely
installed.
vserver:/# apt-get upgrade Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up daemontools-run (1:0.76-2) ...
Removing SV inittab entry...
/var/lib/dpkg/info/daemontools-run.postinst: line 26: kill: (1) - No
such process
dpkg: error processing daemontools-run (--configure):
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
daemontools-run
E: Sub-process /usr/bin/dpkg returned an error code (1)
IT did not come backup after reboot!
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]