Results 1 to 8 of 8
hello,
1.Why the system must never be switched off without first shutting it down?
2.How can we shutdown the system using ‘init’? What is the command line for this to ...
- 09-29-2003 #1Just Joined!
- Join Date
- Sep 2003
- Posts
- 6
Linux Administration-Shutdown problems
hello,
1.Why the system must never be switched off without first shutting it down?
2.How can we shutdown the system using ‘init’? What is the command line for this to happen
3.What are the changes to be made to boot the system without network services being activated.
4.What is the relationship between the scripts kept in ‘/etc/rc.d’ and the run-levels?
Thanks
__________________
regards
pongsu
- 09-29-2003 #2Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
The quiestion Nr1 i dont understand...Of course the system is not turned of if you dont execute the shutdown command.
To see how the initcommand and structures are working see man init. But here is a short brief how the runlevels are working in redhat.
The /etc/inittab are controling which defaultrunlevels to use and which programs to be started by init. Depending on which runlevel to goto init are using /etc/rc<runlevel>.d/* scripts to shutdown and start services.Code:# Default runlevel. The runlevels used by RHS are: # 0 - halt (Do NOT set initdefault to this) # 1 - Single user mode # 2 - Multiuser, without NFS (The same as 3, if you do not have networking) # 3 - Full multiuser mode # 4 - unused # 5 - X11 # 6 - reboot (Do NOT set initdefault to this)
WithYou can see which services that are starting i resp runlevel. To disable and enable services use this commandCode:chkconfig --list
Code:chkconfig --level 0123456 network off to turn off and chkconfig --level 3 network on to turn on
Regards
Andutt
- 09-29-2003 #3Linux Newbie
- Join Date
- Aug 2001
- Location
- USA, Texas
- Posts
- 217
Re: Linux Administration-Shutdown problems
You should never just power off a system without using the shutdown, reboot, init 0, or init 6 command because you could potentially lose important data.
Originally Posted by pongsu
From my understanding ... when you save a change to a text file the change is not immediately written to disk. The change is cached ( buffered ) so that they can be written later when the system has more available resources.[ [ SykkN alloc ] initWithThePowerTo: destroyYouAll ];
/* Don\'t make me use it! */
- 09-29-2003 #4Linux Engineer
- Join Date
- Jan 2003
- Location
- Lebanon, pa
- Posts
- 994
Sounds like somebodies homework questions.
- 09-30-2003 #5Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
Yeah Genlee now that you saying it, it seems obvious....
Regards
Andutt
- 10-06-2003 #6Linux Newbie
- Join Date
- Aug 2003
- Posts
- 113
Re: Linux Administration-Shutdown problems
Answer:
Originally Posted by pongsu
"man shutdown"
You'll want to read up on this. Pretty short read actually.
Example below: (read man shutdown first though)
Code:shutdown -ah now
JB
- 10-06-2003 #7
I never used to get homework like that. Probably because I left school before Linux was released
I am on a journey to mastering Linux and I got a bloody long way to go!!!
- 10-06-2003 #8Linux Engineer
- Join Date
- Nov 2002
- Location
- Queens, NY
- Posts
- 1,319
So.. shutdown before poweroff... well the theory certainly makes sense.
The best things in life are free.


Reply With Quote
