[TriLUG] rc.X -- how do the real sysadmins do it?
Frye, Matthew
Matthew.Frye at rexhealth.com
Wed Dec 3 16:06:06 EST 2003
Munging files is never a good idea when there's a proper command with the
control you want. And leave those links alone!
Use 'chkconfig --level <levels you want to change here> <name of service
here> off [or on]' .
> ----------
> From: Chip Turner[SMTP:cturner at pattern.net]
> Reply To: Triangle Linux Users Group discussion list
> Sent: Wednesday, December 03, 2003 3:01 PM
> To: Triangle Linux Users Group discussion list
> Subject: Re: [TriLUG] rc.X -- how do the real sysadmins do it?
>
> James Manning <jmm at sublogic.com> writes:
>
> > > My methodology, which I learned from some highly experienced sysadmins
> over
> > > the years, has advantages in that it leaves no confusion as to the
> original
> > > intention of the script, and leaves the script available to be
> re-enabled at
> > > any time the admin chooses using a simple 'mv' command. Sometimes
> it's not
> > > just about making it easy, but also making it clearly recognizable.
> >
> > just to be clear, your methodology has the sysadmin do the renames in
> > each rcX.d runlevel, right? Just trying to get a feel for the number
> > of commands vs. "chkconfig foo off"
>
> Generally speaking, you really want to use chkconfig instead of
> munging files manually. chkconfig insulates you from subtle changes
> to the init system as well as having a number of useful features.
> Also, all rpm's that have services will use chkconfig, so if you do
> something weird manually, you may be bitten by it six months later
> when an errata comes out and it tries to use chkconfig but your init
> symlinks aren't quite what it expects.
>
> Full docs are available in /usr/share/doc/initscripts-* (at least on
> RH boxes).
>
> Chip
>
> --
> Chip Turner cturner at pattern.net
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
> TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
>
>
More information about the TriLUG
mailing list