|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: shutdown going to runlevel 1?
From: Andreas Hasenack (andreas
conectiva.com.br)Date: Mon Jul 31 2000 - 15:20:07 CDT
- Next message: hayward
slothmud.org: "Re: shutdown going to runlevel 1?"
- Previous message: Bob Tinsley: "Re: chroot excess WAS:: Demo patch - run telnetd as non-root and chroot()'ed"
- Next in thread: hayward
slothmud.org: "Re: shutdown going to runlevel 1?"
- Reply: hayward
slothmud.org: "Re: shutdown going to runlevel 1?"
- Reply: Aidan Kehoe: "Re: shutdown going to runlevel 1?"
- Reply: Daniel Jacobowitz: "Re: shutdown going to runlevel 1?"
- Reply: poke: "Re: shutdown going to runlevel 1?"
- Reply: poke: "Re: shutdown going to runlevel 1?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 andreasconectiva.com.br BIG Linux user!
- Next message: hayward
slothmud.org: "Re: shutdown going to runlevel 1?"
- Previous message: Bob Tinsley: "Re: chroot excess WAS:: Demo patch - run telnetd as non-root and chroot()'ed"
- Next in thread: hayward
slothmud.org: "Re: shutdown going to runlevel 1?"
- Reply: hayward
slothmud.org: "Re: shutdown going to runlevel 1?"
- Reply: Aidan Kehoe: "Re: shutdown going to runlevel 1?"
- Reply: Daniel Jacobowitz: "Re: shutdown going to runlevel 1?"
- Reply: poke: "Re: shutdown going to runlevel 1?"
- Reply: poke: "Re: shutdown going to runlevel 1?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]