[Pkg-libvirt-maintainers] Bug#507578: init.d script fails when /var/run is a tmpfs
martin f krafft
madduck at debian.org
Tue Dec 2 18:15:30 UTC 2008
Package: libvirt-bin
Version: 0.4.4-3
Severity: important
Tags: patch
If /var/run is a tmpfs, /var/run/libvirt won't necessarily exist,
causing libvirtd to fail on startup.
It would be nice to get this into lenny...
--- /tmp/libvirt-bin 2008-12-02 19:13:01.000000000 +0100
+++ ./libvirt-bin 2008-12-02 19:13:48.000000000 +0100
@@ -96,6 +96,7 @@
exit 0
fi
rm -f /var/run/libvirtd.pid
+ mkdir -p /var/run/libvirt
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--exec $DAEMON -- $libvirtd_opts
running && log_end_msg 0 || log_end_msg 1
@@ -123,6 +124,7 @@
start-stop-daemon --oknodo --stop --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON
[ -n "$DODTIME" ] && sleep $DODTIME
+ mkdir -p /var/run/libvirt
start-stop-daemon --start --quiet --pidfile \
/var/run/$NAME.pid --exec $DAEMON -- $libvirtd_opts
running && log_end_msg 0 || log_end_msg 1
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--
.''`. martin f. krafft <madduck at debian.org>
: :' : proud Debian developer, author, administrator, and user
`. `'` http://people.debian.org/~madduck - http://debiansystem.info
`- Debian - when you have better things to do than fixing systems
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature (see http://martin-krafft.net/gpg/)
Url : http://lists.alioth.debian.org/pipermail/pkg-libvirt-maintainers/attachments/20081202/5f63250d/attachment.pgp
More information about the Pkg-libvirt-maintainers
mailing list