chkconfig

Edgar Allen era at sky.net
Sun Nov 11 18:59:22 CST 2001


Forwarded message:
>Message-ID: <7qgls9.h46.ln at allenhome.kc.rr.com>
>From: eallen at allenhome.kc.rr.com (Ed Allen)
>Newsgroups: comp.os.linux.advocacy
>Subject: Re: Anyone for a reinstall
>Date: Sun, 11 Nov 2001 10:00:42 GMT
>References: <hmiG7.3212$mh1.321370 at news1.cableinet.net> <Usenet.mldmdmdj at localhost> 
<vb9ks9.p12.ln at 192.168.1.1> <mq6sutgm2a1r1788eoksq2nuoc452jsp4k at 4ax.com>
>Lines: 195
>Reply-To: eallen at kc.rr.com
>Organization: Allen Home
>X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
>Originator: eallen at allenhome.kc.rr.com (Ed Allen)
>NNTP-Posting-Host: 65.26.117.181
>X-Complaints-To: abuse at rr.com
>X-Trace: typhoon.kc.rr.com 1005472842 65.26.117.181 (Sun, 11 Nov 2001 04:00:42 CST)
>NNTP-Posting-Date: Sun, 11 Nov 2001 04:00:42 CST
>Xref: allenhome.kc.rr.com comp.os.linux.advocacy:99046
>
>In article <mq6sutgm2a1r1788eoksq2nuoc452jsp4k at 4ax.com>,
>T. Max Devlin  <tmax at commercelinks.net> wrote:
>>Strolling through comp.os.linux.advocacy, I heard Mark Kent say:
>>>In article <Usenet.mldmdmdj at localhost>, Pete Goodwin wrote:
>>>>Michael Vester wrote:
>>>>
>>>>> > What, and leave you to stew in your own juices?
>>>>> > 
>>>>> Donn is just trying to stop you from embarrassing yourself. 
>>>>
>>>>Oh I'm not worried about embarrasing myself. You are the guys who 
>>>>should worry. The stuff I point out that is wrong with Linux is what's 
>>>>really embarrasing. 
>>>
>>>You mean the stuff where you demonstrate that you can't write a working
>>>startup script to do what you can do by hand?
>>
>>Hey, not to be on-topic, or anything, but that is a trick I'd like to
>>learn.  Or rather save for when it'll do me some good.  How do I write a
>>working startup script to do what I can do by hand?  I'm hoping you can
>>explain all that techie garbage that's in startup scripts, the CYA stuff
>>that I've never bothered with, but get nervous because of.  When I've
>>needed to add stuff, I just put entries places, and hope for the best.
>>I'm guessing that you mean something more, and neither of us wants to
>>bother with Pet Goodwin if we can help it, eh?
>>
>>So get with the chatter?  How can you tell when you can write this
>>stuff?
>>
>    I will deal only with what is in front of me so I can test it as I
>    go along. (SuSE handles all of this differently and I would not want
>    to guide you incorrectly)
>
>    With RedHat comes a utility to see what services are installed and
>    ready to invoke at reboot.  The command is 'chkconfig', used like
>    this (I take out the :off values to make the :on ones stand out
>    more):
>
>[eallen at allenhome eallen]$ chkconfig --list | sed 's/.:off/     /g'
>syslog         	     	     	2:on	3:on	4:on	5:on	     
>crond          	     	     	2:on	3:on	4:on	5:on	     
>netfs          	     	     	     	3:on	4:on	5:on	     
>network        	     	     	2:on	3:on	4:on	5:on	     
>random         	     	     	2:on	3:on	4:on	5:on	     
>rawdevices     	     	     	     	3:on	4:on	5:on	     
>xfs            	     	     	2:on	3:on	4:on	5:on	     
>amd            	     	     	     	     	     	     	     
>xinetd         	     	     	     	3:on	4:on	5:on	     
>reconfig       	     	     	     	3:on	4:on	5:on	     
>anacron        	     	     	2:on	3:on	4:on	5:on	     
>httpd          	     	     	     	     	     	     	     
>apmd           	     	     	     	     	     	     	     
>arpwatch       	     	     	     	     	     	     	     
>atd            	     	     	     	3:on	4:on	5:on	     
>named          	     	     	2:on	3:on	4:on	5:on	     
>keytable       	     	     	2:on	3:on	4:on	5:on	     
>gpm            	     	     	2:on	3:on	4:on	5:on	     
>innd           	     	     	     	     	     	     	     
>ipchains       	     	     	2:on	3:on	4:on	5:on	     
>irda           	     	     	     	     	     	     	     
>isdn           	     	     	     	     	     	     	     
>pcmcia         	     	     	     	     	     	     	     
>kdcrotate      	     	     	     	     	     	     	     
>kudzu          	     	     	     	3:on	4:on	5:on	     
>linuxconf      	     	     	2:on	3:on	4:on	5:on	     
>lpd            	     	     	2:on	3:on	4:on	5:on	     
>mars-nwe       	     	     	     	     	     	     	     
>nfs            	     	     	     	     	     	     	     
>nfslock        	     	     	     	     	     	     	     
>sshd           	     	     	2:on	3:on	4:on	5:on	     
>identd         	     	     	     	     	     	     	     
>portmap        	     	     	     	     	     	     	     
>postgresql     	     	     	     	     	     	     	     
>pppoe          	     	     	     	     	     	     	     
>rstatd         	     	     	     	     	     	     	     
>rusersd        	     	     	     	     	     	     	     
>rwalld         	     	     	     	     	     	     	     
>rwhod          	     	     	     	     	     	     	     
>smb            	     	     	     	3:on	4:on	5:on	     
>sendmail       	     	     	2:on	3:on	4:on	5:on	     
>snmpd          	     	     	     	     	     	     	     
>rhnsd          	     	     	     	     	     	     	     
>ypbind         	     	     	     	     	     	     	     
>yppasswdd      	     	     	     	     	     	     	     
>ypserv         	     	     	     	     	     	     	     
>autofs         	     	     	     	3:on	4:on	5:on	     
>bootparamd     	     	     	     	     	     	     	     
>ciped          	     	     	     	     	     	     	     
>dhcpd          	     	     	     	     	     	     	     
>gated          	     	     	     	     	     	     	     
>kadmin         	     	     	     	     	     	     	     
>kprop          	     	     	     	     	     	     	     
>krb524         	     	     	     	     	     	     	     
>krb5kdc        	     	     	     	     	     	     	     
>mcserv         	     	     	     	     	     	     	     
>mysqld         	     	     	     	3:on	4:on	5:on	     
>nscd           	     	     	     	     	     	     	     
>ntpd           	     	     	2:on	3:on	4:on	5:on	     
>ups            	     	     	     	     	     	     	     
>ldap           	     	     	     	     	     	     	     
>pvmd           	     	     	     	     	     	     	     
>pxe            	     	     	     	     	     	     	     
>rarpd          	     	     	     	     	     	     	     
>routed         	     	     	     	     	     	     	     
>squid          	     	     	     	     	     	     	     
>vncserver      	     	     	     	     	     	     	     
>uptimed        	     	     	2:on	3:on	4:on	5:on	     
>xinetd based services:
>	amandaidx:	off
>	amidxtape:	off
>	finger:	on
>	linuxconf-web:	off
>	rexec:	off
>	rlogin:	off
>	rsh:	off
>	swat:	off
>	ntalk:	off
>	talk:	off
>	telnet:	on
>	tftp:	off
>	wu-ftpd:	on
>	comsat:	off
>	imap:	off
>	imaps:	off
>	ipop2:	off
>	ipop3:	off
>	pop3s:	off
>	eklogin:	off
>	gssftp:	off
>	klogin:	off
>	krb5-telnet:	off
>	kshell:	off
>	leafnode:	on
>
>    The numbers before the colons(:) are the run levels and then the
>    on/off state for that run level.
>
>    If I wanted to enable the 'httpd' for run levels 3, 4, and 5 the
>    command is:
>
>	chkconfig --level 345 httpd on
>
>    Then to check:
>
>	chkconfig --list httpd
>httpd           0:off   1:off   2:off   3:on    4:on    5:on    6:off
>
>    I suppose they provide a GUI tool to manipulate the whole thing but
>    I don't bother with it.
>
>    As for creating your own:
>
>    copy /etc/rc.d/init.d/rwhod into /etc/rc.d/init.d/MaxSvcd
>    then edit /etc/rc.d/init.d/MaxSvcd to change
>
>    # chkconfig: - 60 20
>
>    to something like:
>
>    # chkconfig: - 95 15
>
>    The 95 is the the start up number, they go from 1 to 100.
>    The 15 is the shutdown number, they go from 1 to 100 also.
>
>    So MaxSvc will be shutdown early and started after almost everything
>    else is already running.
>
>    and then put your manual commands into the 'start' and 'stop'
>    functions in the file /etc/rc.d/init.d/MaxSvcd in place of the
>    'daemon rwhod' for start and 'killproc rwhod' for stop.
>
>    Test it with:
>
>	service MaxSvc start
>
>	service MaxSvc status
>
>	service MaxSvc stop
>
>	service MaxSvc start
>
>    Assuming that all works,
>
>        chkconfig --level 345 MaxSvc on
>
>    Will start it as part of the boot sequence
>
>    As to what commands start/stop MaxSvc you will need to work those
>    out for yourself or ask someone who already has it running.
>
>-- 
>"The Microsoft Game" rules are very simple: 
>    1. If You play Microsoft's game, Microsoft wins.
>    2. If you refuse to play Microsoft's game, Microsoft wins.
>    3. Anytime you win, Microsoft gets to change the rules.
>




More information about the Kclug mailing list