Bug#387699: exim4: Should create /var/run/exim4/ if it is missing

Petter Reinholdtsen pere at hungry.com
Sat Sep 16 08:41:24 UTC 2006


[Andreas Metzler]
> 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.

OK.

> 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.

Well, not having some place to store state information before
partitions are checked and mounted is creating a problems for
ifupdown, initscripts and others, and I belive it is time to solve
this problem.  Programs have been misusing /dev/shm/ for too long, and
they need an alterantive location to store their stuff.

> You should somehow try to save this info, instead of changing every
> package using its own directory in /var/run.

I fail to see the advantage of adding that complexity when we can just
add 'mkdir' calls to the scripts expecting some directories in
/var/run/.

The next upload of sysvinit will make /var/run/ a tmpfs and mount it
as the very first thing done during boot.




More information about the Pkg-exim4-maintainers mailing list