Comment 7 for bug 259965

Revision history for this message
Ryan Lovett (ryan-spacecoaster) wrote : Re: [Bug 259965] Re: shutdown: unconditionally removes /etc/nologin

On Sat, Jun 20, 2009 at 10:19:02AM -0000, Scott James Remnant wrote:
> Are you sure that it's Upstart that wipes the nologin file? In Ubuntu,
> at least, the nologin file is created by the /etc/rcS.d/S80bootmisc.sh
> script and then removed by /etc/rc[2-5].d/S99rmnlogin
>
> Removal can be prevented by setting DELAYLOGIN=no in /etc/default/rcS
>
>
> If this is not what you mean, could you explain why (and where in the
> code) you think Upstart is removing /etc/nologin

In upstart-0.3.9 compat/sysv/shutdown.c, shutdown_now() and cancel_callback():

        unlink (ETC_NOLOGIN);

Ryan