OSEC

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 (andreasconectiva.com.br)
Date: Mon Jul 31 2000 - 15:20:07 CDT


Does anybody know why a:

[rootpandora /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!