[TriLUG] rc.X -- how do the real sysadmins do it?
Ben Pitzer
uncleben at mindspring.com
Wed Dec 3 14:58:58 EST 2003
James,
Yes, that's correct. You do have to do it in each runlevel where the init
script lives. Of course, I've been using Solaris for a while now, and so
there typically is only one case of any given init script, where in Linux
you might have more. So you may have more commands to run, but then again,
how often are you doing this? If you're doing it often enough that a couple
of extra command lines are too time consuming to run, then you are probably
doing something that should be scripted and cronned, I would think. Most
init script manipulation is done when the box is built, to secure it before
placing it on the network. Otherwise, you're doing something that is much
more granular, and can/should probably be scripted and scheduled to turn the
service on or off.
Regards,
Ben Pitzer
---------------------------------------------
"Those that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety."
--Ben Franklin--
> -----Original Message-----
> From: trilug-bounces at trilug.org [mailto:trilug-bounces at trilug.org]On
> Behalf Of James Manning
> Sent: Wednesday, December 03, 2003 2:27 PM
> To: Triangle Linux Users Group discussion list
> Subject: Re: [TriLUG] rc.X -- how do the real sysadmins do it?
>
>
> > 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"
>
> --
> James Manning <http://www.sublogic.com/james/>
> GPG Key fingerprint = B913 2FBD 14A9 CE18 B2B7 9C8E A0BF B026 EEBB F6E4
> --
> 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