[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: disable problem+question
From: |
Sigmund Straumsnes |
Subject: |
Re: disable problem+question |
Date: |
Mon, 24 Mar 2003 11:23:41 +0100 |
User-agent: |
KNode/0.6.1 |
Zeev Fisher (Zeev.Fisher@il.marvell.com):
> 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 ?
There is no rename in cfengine, but you could of course use shellcommands
(or copy followed by tidy...)
However, since /etc/rcX.d/SXXblah is a link to /etc/init.d/blah, you could
use the links action to link the former to /bin/true or something, and then
relink it when needed (eg: dtlogin on desktop, based on some class).
links:
class1::
/etc/rcX.d/SXXblah ->! /usr/bin/true
class2:
/etc/rcX.d/SXXblah ->! /etc/init.d/blah
Sigmund Straumsnes