Re: autofs startup issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 25/07/17 13:33, doron cohen wrote:
Once in a while, after a reboot, we detect autofs is not running.
After some investigating we discovered that the pid file in
/run/autofs-running hasn't been cleaned before reboot and autofs
reports it is already running:

[root@autofs-6 ~]# pidof automount
[root@autofs-6 ~]# automount --debug
automount: program is already running.
[root@autofs-6 ~]# cat /run/autofs-running
3394
[root@autofs-6 ~]# rm /run/autofs-running
rm: remove regular file ‘/run/autofs-running’? y
[root@autofs-6 ~]# automount --debug
[root@autofs-6 ~]# pidof automount
6362
[root@autofs-6 ~]# cat /run/autofs-running
6362

It's been a long time since I looked at this code.

It seems that if a pid file is found only the existence of a process
is checked. Whether that process is an automount process or not isn't
checked. So if some other process with that pid now exists but isn't
an automount process the check will get a false positive.

I'll need to fix that.

Ian
--
To unsubscribe from this list: send the line "unsubscribe autofs" in



[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux