LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   linux questions (https://www.linuxquestions.org/questions/linux-newbie-8/linux-questions-710392/)

jorge grijalba 03-09-2009 10:23 PM

linux questions
 
1.what script contains the default runlevel?
2.the init scripts for each runlevel are contained in which directory tree?
3.what would you name the link to an init script that would start the fictitious bigd daemon early in the boot process?
4.what would you name the link to kill the same daemon.?
5.how would you use the service command to manually kill the bigd daemon.?
6.how would you use chkconfig to set the bigd daemon to start at runlevels 2 and 3.?
7.how would you would you use chkconfig to remove bigd from all runlevels.?
8.how would you use telinit to switch to runlevel 5?
9.how would you tell Linux to shut down in five minutes ( not delay five minutes) with the message, "The system will shut down in 5 minutes. log off now"!?


thansk to any one who is able to help me with these questions.

your_shadow03 03-09-2009 10:48 PM

1. /etc/rc <tab>
2.Check /etc/inittab
3.Open /etc/rc.local and write the script to run at boot time
4. kill -9 <pid>
5. kill -9 <pid /// You can get through ps for service>
6. chkconfig bigd --level 23 on
7. chkconfig --del bigd
8. Edit the /etc/inittab and Enter :

id:5:initdefault:

9.shutdown -t 5 // You can write it on script for the same

jschiwal 03-09-2009 11:00 PM

This looks like a bunch of homework problems. Using this site to cheat on homework is against this sites policy. Finding the answers for yourself is how you learn.

pixellany 03-10-2009 05:13 AM

Per the LQ Rules, please do not post homework assignments verbatim. We're happy to assist if you have specific questions or have hit a stumbling point, however. Let us know what you've already tried and what references you have used (including class notes, books, and Google searches) and we'll do our best to help. Also, keep in mind that your instructor might also be an LQ member.


All times are GMT -5. The time now is 08:39 PM.