Bug#387699: exim4: Should create /var/run/exim4/ if it is missing
Andreas Metzler
ametzler at downhill.at.eu.org
Sat Sep 16 08:23:03 UTC 2006
On 2006-09-16 Petter Reinholdtsen <pere at hungry.com> wrote:
> Package: exim4-base
> Version: 5.40-8
> Severity: important
> Tags: patch
> The exim4 init.d script is creating files in /var/run/exim4/, but do
> not make sure the directory exist before doing this. This will break
> when I change /var/run/ to be a tmpfs in initscripts.
> Here is a patch to solve this.
> --- /etc/init.d/exim4.orig 2006-07-24 10:44:24.000000000 +0200
> +++ /etc/init.d/exim4 2006-09-16 09:23:08.000000000 +0200
> @@ -86,6 +86,7 @@
> start_exim()
> {
> + [ -d /var/run/exim4 ] || mkdir /var/run/exim4
> case ${QUEUERUNNER} in
> combined)
> $ENV start-stop-daemon --start --pidfile "$PIDFILE" \
Hello,
this creates /var/run/exim4 with incorrect permissions.
exim4-base.postinst uses
install -d -oDebian-exim -gDebian-exim -m750 /var/run/exim4
to setup the directory.
BTW I am not convinced that generating this stuff in the init script
is the correct solution for the whole problem, packages are shipping
subdirectories of /var/run in the deb package itself and are
rightfully expecting the directory to be persistent. You should
somehow try to save this info, instead of changing every package using
its own directory in /var/run.
cu andreas
--
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken. (c) Jasper Ffforde
More information about the Pkg-exim4-maintainers
mailing list