help-cfengine
[Top][All Lists]
Advanced

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

Re: disable problem+question


From: khalid . sattar
Subject: Re: disable problem+question
Date: Mon, 24 Mar 2003 13:56:24 +0000

I get round the problem by defining repository variable and using disable,
which then moves it out of that directory.

Repository  = (  /var/cfengine/repository )

disable:
    solaris::
        /etc/rc2.d/S74autofs

At 24/03/2003 6:13:22, help-cfengine-bounces+khalid=harlequin.co.uk@gnu.org 
wrote:
  > When i think about it , maybe the best thing is to rename to file to
  > something like /etc/rc2.d/s85power ( instead capital S ) and it will not 
run.
  > The only problem is now that i didn't find how to rename a file in
  > cfengine... Can someone help me with that ?
  >
  > Thanks
  >
  > Zeev
  >
  > mandrews wrote:
  >
  > 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:
  >
  > files:
  >   /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:
  >
  > shellcommands:
  >   disabled_power:
  >   "/bin/sh /etc/init.d/power stop"
  >
  > That way the service is shut down immediately too.
  >
  > Martin
  >
  >
  >
  > -----Original Message-----
  > From: help-cfengine-bounces+mandrews=cle.lionbioscience.com@gnu.org[
  > mailto:help-cfengine-bounces+mandrews=cle.lionbioscience.com@gnu.org]On
  > 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 ?
  >
  >
  >
  >
  > _______________________________________________
  > Help-cfengine mailing listHelp-cfengine@gnu.org
  > http://mail.gnu.org/mailman/listinfo/help-cfengine.
  >
  >
  >
  >
  > --
  > Zeev Fisher - Unix System Administrator
  > Marvell Semiconductor Israel Ltd
  > Moshav Manof, D.N. Misgav 20184, ISRAEL
  > Email    -  Zeev.Fisher@il.marvell.comTel      -  + 972 4 9091402
  > Cell     -  + 972 54 995402
  > Fax      -  + 972 4 8326420
  > WWW Page:     http://www.marvell.com
  > ------------------------------------------------------------------------
  > This message may contain confidential, proprietary or legally privileged
  > information. The information is intended only for the use of the individual
  > or entity named above. If the reader of this message is not the
  > intended recipient, you are hereby notified that any dissemination,
  > distribution
  > or copying of this communication is strictly prohibited.
  > If you have received this communication in error, please notify us
  > immediately by telephone, or by e-mail and delete the message from your
  > computer.
  >
  >
  > _______________________________________________
  > Help-cfengine mailing list
  > Help-cfengine@gnu.org
  > http://mail.gnu.org/mailman/listinfo/help-cfengine
  >
_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://mail.gnu.org/mailman/listinfo/help-cfengine







reply via email to

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