|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: Re: shutdown going to runlevel 1?
From: poke (poke
oly.silverlink.net)Date: Mon Jul 31 2000 - 18:58:05 CDT
- Next message: Vitalie Chiperi: "How do I unsubscribe to this list?"
- Previous message: poke: "Re: shutdown going to runlevel 1?"
- In reply to: Andreas Hasenack: "shutdown going to runlevel 1?"
- Reply: poke: "Re: shutdown going to runlevel 1?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Oops, sorry for that one. I thought you said "init 5" instead of "shutdown
5". I guess I couldn't imagine doing that (no offense intended) :-)
-Chuck
On Mon, 31 Jul 2000, Andreas Hasenack wrote:
> Does anybody know why a:
>
> [root
pandora /root]# shutdown 5
>
> Broadcast message from root (tty1) Mon Jul 31 17:11:42 2000...
>
> The system is going DOWN to maintenance mode in 5 minutes !!
>
>
> goes to runlevel 1 (maintenance mode) instead of 6?
>
> I get the same with "shutdown now". If I use the -h or -r options,
> I correctly get to halt or reboot.
>
> In shutdown.c:509, the default seems to be runlevel 1:
>
> (...)
> realuid = getuid();
> setuid(geteuid());
>
> if (getuid() != 0) {
> fprintf(stderr, "shutdown: must be root.\n");
> exit(1);
> }
> strcpy(down_level, "1");
> ^^^^^^^^^^^^^^^^^^^^^^^^
> /* Process the options. */
> while((c = getopt(argc, argv, "acqkrhnfFyt:g:i:")) != EOF) {
> (...)
>
> Any harm done in changing that to 6?
>
> Using SysVinit-2.78.
>
>
> --
> Andreas Hasenack
> andreas
conectiva.com.br
> BIG Linux user!
>
>
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :"Condense fact from the vapor of nuance": : 25 -> ten.knilrevlisekop : : 80 -> ekop\ten.knilrevlis.www\\:ptth : ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Next message: Vitalie Chiperi: "How do I unsubscribe to this list?"
- Previous message: poke: "Re: shutdown going to runlevel 1?"
- In reply to: Andreas Hasenack: "shutdown going to runlevel 1?"
- Reply: poke: "Re: shutdown going to runlevel 1?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]