[Pkg-sysvinit-devel] Bug#491059: initscripts: Please don't delete /var/run/portmap.pid in bootclean.sh
Sven Joachim
svenjoac at gmx.de
Wed Jul 16 14:54:09 UTC 2008
On 2008-07-16 11:37 +0200, Petter Reinholdtsen wrote:
> [Sven Joachim]
>> In order to fix #490985 it is necessary to have a
>> /var/run/portmap.pid file, and since mountnfs-bootclean.sh runs
>> after portmap that means it must not delete that file. The
>> following patch against /lib/init/bootclean.sh achieves this:
>
> Hm, I suspect this is the wrong solution. I wonder why /var/run/ is
> cleaned after NFS is mounted.
As we discussed on initscripts-ng-devel, it is due to an incorrect
dependency in bootmisc.sh.
> As far as I know, we do not support /var/run/ mounted on NFS.
Do you have evidence for that? I very much hope it is true, since my
fix for #490985 will break badly if /var/run is mounted after portmap
has started.
> Perhaps the fix is to drop that cleaning after NFS is mounted?
That does not seem necessary.
> I wonder why innd.pid is handled specially. According to #272066, it
> was present in 2005. I find nothing about it in the changelog. :( I
> suspect we want to skip all *.pid, not just innd.pid and portmap.pid,
> if we are going to skip pid files.
I think we should not skip any of them, because any daemon that needs a
pidfile in /var/run needs to depend at least on $local_fs, and
preserving pidfiles after a reboot is rather pointless.
Cheers,
Sven
More information about the Pkg-sysvinit-devel
mailing list