Re: Runlevels and services in Slackware [WAS: Re: BSD vs Sys…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Siri Amrit Kaur
Date:  
To: plug-discuss
Subject: Re: Runlevels and services in Slackware [WAS: Re: BSD vs SysV init scripts]
Thanks for the example. It makes much more sense to me now.

Siri Amrit

On Sunday 23 January 2005 11:07 pm, Craig White kindly wrote:

> this is pretty much the same on any distro - including linux 1 (or
> 2 or 3 etc.) in grub/lilo boot
>
> SysV is just more comprehensive. Confusing if you've learned to
> manhandle things and simple when you get the idea and the tools.
>
> chkconfig takes advantage of all 'services' by the fact that the
> startup script would have the 'numerical' equivalent of where the
> daemons/services order in both starting and killing as well as
> xinetd stuff such as ipop3, imap, etc.
>
> consider...
> # chkconfig --list
> spamassassin    0:off   1:off   2:on    3:on    4:on    5:on   
> 6:off atd             0:off   1:off   2:off   3:on    4:on    5:on 
>   6:off syslog          0:off   1:off   2:on    3:on    4:on   
> 5:on    6:off gpm             0:off   1:off   2:off   3:off   4:off
>   5:off   6:off kudzu           0:off   1:off   2:off   3:on   
> 4:on    5:on    6:off firewall        0:off   1:off   2:off   3:off
>   4:off   5:off   6:off cups            0:off   1:off   2:on   
> 3:on    4:on    5:on    6:off sendmail        0:off   1:off   2:on 
>   3:on    4:on    5:on    6:off netfs           0:off   1:off  
> 2:off   3:on    4:on    5:on    6:off network         0:off   1:off
>   2:on    3:on    4:on    5:on    6:off random          0:off  
> 1:off   2:on    3:on    4:on    5:on    6:off rawdevices      0:off
>   1:off   2:off   3:on    4:on    5:on    6:off apmd           
> 0:off   1:off   2:on    3:on    4:on    5:on    6:off ipchains     
>   0:off   1:off   2:off   3:off   4:off   5:off   6:off iptables   
>     0:off   1:off   2:on    3:on    4:on    5:on    6:off crond    
>       0:off   1:off   2:on    3:on    4:on    5:on    6:off anacron
>         0:off   1:off   2:on    3:on    4:on    5:on    6:off ntpd 
>           0:off   1:off   2:on    3:on    4:on    5:on    6:off xfs
>             0:off   1:off   2:on    3:on    4:on    5:on    6:off
> portmap         0:off   1:off   2:off   3:on    4:on    5:on   
> 6:off xinetd          0:off   1:off   2:off   3:on    4:on    5:on 
>   6:off autofs          0:off   1:off   2:off   3:on    4:on   
> 5:on    6:off nfs             0:off   1:off   2:off   3:off   4:off
>   5:off   6:off nfslock         0:off   1:off   2:off   3:on   
> 4:on    5:on    6:off nscd            0:off   1:off   2:off   3:off
>   4:off   5:off   6:off clamd           0:off   1:off   2:on   
> 3:on    4:on    5:on    6:off radvd           0:off   1:off   2:off
>   3:off   4:off   5:off   6:off rwhod           0:off   1:off  
> 2:off   3:off   4:off   5:off   6:off snmpd           0:off   1:off
>   2:off   3:off   4:off   5:off   6:off rhnsd           0:off  
> 1:off   2:off   3:on    4:on    5:on    6:off ypbind          0:off
>   1:off   2:off   3:off   4:off   5:off   6:off isdn           
> 0:off   1:off   2:on    3:on    4:on    5:on    6:off sshd         
>   0:off   1:off   2:on    3:on    4:on    5:on    6:off rstatd     
>     0:off   1:off   2:off   3:off   4:off   5:off   6:off rusersd  
>       0:off   1:off   2:off   3:off   4:off   5:off   6:off rwalld 
>         0:off   1:off   2:off   3:off   4:off   5:off   6:off
> yppasswdd       0:off   1:off   2:off   3:off   4:off   5:off  
> 6:off ypserv          0:off   1:off   2:off   3:off   4:off   5:off
>   6:off ypxfrd          0:off   1:off   2:off   3:off   4:off  
> 5:off   6:off smb             0:off   1:off   2:off   3:on    4:off
>   5:off   6:off winbind         0:off   1:off   2:off   3:off  
> 4:off   5:off   6:off httpd           0:off   1:off   2:off   3:off
>   4:off   5:off   6:off squid           0:off   1:off   2:off  
> 3:off   4:off   5:off   6:off tux             0:off   1:off   2:off
>   3:off   4:off   5:off   6:off named           0:off   1:off  
> 2:on    3:on    4:on    5:on    6:off arpwatch        0:off   1:off
>   2:off   3:off   4:off   5:off   6:off dhcpd           0:off  
> 1:off   2:off   3:off   4:off   5:off   6:off apcupsd         0:off
>   1:off   2:on    3:on    4:on    5:on    6:off webmin         
> 0:off   1:off   2:on    3:off   4:off   5:on    6:off yum          
>   0:off   1:off   2:off   3:off   4:off   5:off   6:off amavisd    
>     0:off   1:off   2:on    3:on    4:on    5:on    6:off mysqld   
>       0:off   1:off   2:on    3:on    4:on    5:on    6:off
> snmptrapd       0:off   1:off   2:off   3:off   4:off   5:off  
> 6:off sysstat         0:off   1:on    2:on    3:on    4:on    5:on 
>   6:off saslauthd       0:off   1:off   2:off   3:off   4:off  
> 5:off   6:off canna           0:off   1:off   2:on    3:on    4:on 
>   5:on    6:off vsftpd          0:off   1:off   2:off   3:off  
> 4:off   5:off   6:off dhcrelay        0:off   1:off   2:off   3:off
>   4:off   5:off   6:off spamass-milter  0:off   1:off   2:on   
> 3:on    4:on    5:on    6:off clamav-milter   0:off   1:off   2:on 
>   3:on    4:on    5:on    6:off xinetd based services:
>         chargen-udp:    off
>         chargen:        off
>         daytime-udp:    off
>         daytime:        off
>         echo-udp:       off
>         echo:   off
>         time-udp:       off
>         time:   off
>         services:       off
>         finger: off
>         rexec:  off
>         rlogin: off
>         rsh:    off
>         ntalk:  off
>         talk:   off
>         telnet: off
>         rsync:  off
>         imap:   on
>         imaps:  off
>         ipop2:  off
>         ipop3:  on
>         pop3s:  off
>         cups-lpd:       off

>
> now you can edit things by hand but why bother?
>
> # chkconfig --list saslauthd
> saslauthd       0:off   1:off   2:off   3:off   4:off   5:off  
> 6:off

>
> # chkconfig --levels 2345 saslauthd on
> would turn it on in those run levels
>
> # chkconfig saslauthd on
> would turn it on in all run levels indicated in the SysV script or
> if not indicated, all run levels
>
> and beyond the normal daemons...there's the xinetd services...
>
> # chkconfig imaps on
> would set disable=no and restarts xinetd
>
> It's a very nice tool - I don't usually bother editing anything
> inside /etc/init.d or /etc/xinetd.d by hand (links or otherwise)
>
> Craig
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss