Click to See Complete Forum and Search --> : Shutdown problem


mmartinez
01-16-2001, 04:00 AM
I shutdown my linux box with this command: "shutdown 0". then it gave me this command prompt: "bash#". Then I typed again the shutdown command, it wouldn't shutdown. But when I used the option -r for restart, it restarted.

I always use the command 'shutdown' but this is my first time to get that prompt. What does that mean? I just configured my Samba in my linux box. Is there any connection?

Thanks.

Thanks.

twofoolish2b
01-16-2001, 08:32 AM
Try this:

shutdown -h now

The_Stack
01-18-2001, 11:36 AM
First you should read:
man shutdown

If you invoke shutdown without the -h or -r flag then your machine is set to runlevel 1 which is usually single user mode (useful for system maintenance).

The actions that your computer will execute for runlevel 1 are specifed in /etc/inittab. Make sure to read:
man inittab

Usually when the system is switched to runlevel 1 you will be dropped into a simple shell such as bash or on some systems you have to choose the shell you will use in single user mode.

Good Luck!

StanLin
01-18-2001, 12:33 PM
I use "poweroff" as all users can power down the ATX box. "shutdown -h now" only gives root user power down. I cannot explain why but it serves my purpose.