Re: BSD vs SysV init scripts

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Craig White
Date:  
To: plug-discuss
Subject: Re: BSD vs SysV init scripts
On Sun, 2005-01-23 at 23:59 -0700, der.hans wrote:
> Am 23. Jan, 2005 schwätzte Craig White so:
>
> > Guys learn at an early age that if they are going to urinate outdoors,
> > you always have to take into account which way the wind is blowing. On a
> > sysV system, you merely need to know the very few commands of chkconfig
> > to make it sing. It is probably the simplest of all administration
> > commands ever created for Unix/Linux. Maybe it's a guy thing.
>
> Not sure what peeing outdoors has to do with sysV init scripts, but
> chkconfig has one really foolish 'feature'. Presuming config info is still
> kept in the init scripts, that is.
>
> Configuration info goes in configuration files.
>
> Code goes in executable files.
>
> Putting either one into the other is bad.
>
> A script should not change because a configuration change was made.

----
I don't know how other distro's do it but on Red Hat, config
stuff/variables/launch options are set in corresponding /etc/sysconfig
files...leaving scripts 'unchanged' unless it is flawed (but they're
getting better unless I created them) ciao

# ls -l /etc/sysconfig
total 212
-rw-r-----    1 root     amavis        307 Nov 29 00:10 amavisd
drwxr-xr-x    2 root     root         4096 Jan 20 17:44 apm-scripts
-rw-r--r--    1 root     root         4818 Dec 11  2003 apmd
-rw-r--r--    1 root     root           18 May 17  2002 arpwatch
-rw-r--r--    1 root     root          201 Apr 16  2003 arpwatch.rpmnew
-rw-r--r--    1 root     root          103 Dec 14  2001 authconfig
-rw-r--r--    1 root     root          523 Sep 14 11:28 autofs
drwxr-xr-x    2 root     root         4096 Jan 20 17:52 cbq
-rw-r--r--    1 root     root          330 Jan 23 17:14 clamav-milter
-rw-r--r--    1 root     root          330 Jan 23 17:13 clamav-milter~
-rw-r--r--    1 root     root           43 Dec 14  2001 clock
drwxr-xr-x    2 root     root         4096 Oct 10 19:03 console
-rw-r--r--    1 root     root           11 Dec 14  2001 desktop
-rw-r--r--    1 root     root           15 Jan 20 18:01 dhcpd
-rw-r--r--    1 root     root           57 Dec 23 22:37 dhcrelay
-rw-r--r--    1 root     root           88 Dec 12  2003 gpm
-rw-r--r--    1 root     root           25 Jan 20 17:53 grub
-rw-r--r--    1 root     root         1592 Dec 12  2003 harddisks
-rw-r--r--    1 root     root         4170 Jan 20 17:54 hwconf
-rw-r--r--    1 root     root           93 Jan 23 23:19 i18n
-rw-r--r--    1 root     root           84 Jan 22 21:37 i18n~
-rw-r--r--    1 root     root          991 May 20  2003 init
-rw-r--r--    1 root     root           74 Jan 20 17:52 installinfo
-rw-------    1 root     root          474 May 14  2004 iptables-config
-rw-r--r--    1 root     root           32 Dec 14  2001 keyboard
-rw-r--r--    1 root     root          151 Sep  6  2001 kudzu
-rw-r--r--    1 root     root          168 Feb 24  2003 kudzu.rpmnew
-rw-r--r--    1 root     root           90 Dec 14  2001 mouse
-rw-r--r--    1 root     root          382 Dec 23 22:29 named
-rw-r--r--    1 root     root           42 Jan 20 18:03 network
drwxr-xr-x    3 root     root         4096 Jan 22 02:50 network-scripts
drwxr-xr-x    4 root     root         4096 Oct 10 19:03 networking
-rw-r--r--    1 root     root           80 Apr 14  2003 network~
-rw-r--r--    1 root     root          106 May 14  2004 ntpd
-rw-r--r--    1 root     root           38 Dec 14  2001 pcmcia
-rw-r--r--    1 root     root          249 Dec 12  2003 radvd
-rw-r--r--    1 root     root          153 Jul 24  2000 rawdevices
drwxr-xr-x    3 root     root         4096 Jan 22 09:40 rhn
-rw-r--r--    1 root     root           70 Aug 13  2001 samba
-rw-r--r--    1 root     root          111 Apr  5  2003 samba.rpmnew
-rw-r--r--    1 root     root           20 Sep 15 12:52 sendmail
-rw-r--r--    1 root     root          244 Jan 23 08:09 spamass-milter
-rw-r--r--    1 root     root          235 Sep  1 02:10 spamass-milter~
-rw-r--r--    1 root     root           62 Jan 23 07:19 spamassassin
-rw-r--r--    1 root     root           52 Aug  7 20:05 spamassassin~
-rw-r--r--    1 root     root          297 Dec 24 02:09 squid
-rw-r--r--    1 root     root            0 May 23  2002 static-routes
-rw-r--r--    1 root     root          454 Sep 15 12:53 syslog
-rw-r--r--    1 root     root           66 Dec 24 02:09 sysstat
-rw-r--r--    1 root     root         1750 Sep 15 12:56 tux
-rw-r--r--    1 root     root          376 Dec 24 02:24 xinetd
-rw-r--r--    1 root     root          543 Dec 24 02:24 yppasswdd


as for twisted metaphor, I thought it was obvious that you could either
learn the nice tools or fight them all the way...taking measure of the
wind so to speak.

Craig

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