NetBSD-Users archive

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

Re: Removing /etc/nologin on shutdown



On Sun, 23 May 2010, Ian D. Leroux wrote:

> I'm experimenting with a read-only root file system.

> So:
> - Is the documentation correct?  Should /etc/nologin be removed as the
>   system is going down?

Yes. It should be removed. See shutdown.c finish(). Maybe it should 
complain if unlink fails. Probably best to figure out if the system is 
halted before this finish() is done.

> - If so, is it /sbin/shutdown's job to remove it, or something in the
>   /etc/rc.d scripts?  Where should I look to find out why this isn't
>   happening as it should?

The /etc/rc.d shutdown scripts would be too early.

> Who is returning to BSD after a long exile in Debian

Welcome back!


Home | Main Index | Thread Index | Old Index