[Gllug] re: shutting-down/rebooting by logging in as a specific user
Andrew Halliwell
ah at gnd.com
Fri Apr 2 09:31:58 UTC 2004
And verily, didst t.clarke announce to the hordes:
>
> Dylan raised a query concerning the terminal continuing to prompt for
> shell commands for up to 30 secs after shutdown/reboot invoked from the
> users 'startup' script.
>
> Are you using the shutdown command ?
>
> I shut down so very infrequently I can't remember what it does - but I
> assume that it must be signalling init to change states and the exiting;
> making the shell prompt available again. If that is the case, could you not
> either add an exit statemnt to the end of the script, or simply instead
> of executing shutdown from the script in the normal way do an 'exec shutdown'
> (so that the shell overlays itself with the shutdown command) ?
perhaps adding "killall -9 bash" (or whatever each user uses as his shell)
or a few lines to kill all shells you have on your system (if you allow
users to chsh)
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list