[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: disable problem+question

From: mandrews
Subject: RE: disable problem+question
Date: Sun, 23 Mar 2003 10:29:45 -0500

Since disable actions move the file to *.cfsaved it does not work well for 
init/rc scripts (where the renamed file is still processed). Instead I have 
been removing the execute permssions like so:

  /etc/rc2.d/S85power mode=a-x action=fixplain

To restore just add the execute permissions back. Also, I usually modify the 
base script in /etc/init.d that the other scripts in rc*.d should link to. I 
also define a class when I change the permission bits and if that class is 
defined I run a shellcommand like:

  "/bin/sh /etc/init.d/power stop"

That way the service is shut down immediately too.


> -----Original Message-----
> From: address@hidden
> [
> Behalf Of Zeev Fisher
> Sent: Sunday, March 23, 2003 12:56 AM
> To: help-cfengine
> Subject: disable problem+question
> Hi,
> I'm trying to disable the following on Solaris with cfengine 
> version 2.0.5 :
> disable:
>         /etc/rc2.d/S85power
>         /etc/rc2.d/S88sendmail
> But it doesn't do anything to the following files.
> I have also a question :
> Is there sort of enable ? for example i have a server which is not 
> interactive and i want to disable S99dtlogin. After a while , this 
> server goes to someone desk and i would like to enable this 
> again. How 
> do i implement this ?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]