help-cfengine
[Top][All Lists]
Advanced

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

Re: rc.d links in SuSE


From: Mark . Burgess
Subject: Re: rc.d links in SuSE
Date: Thu, 28 Aug 2003 21:48:37 +0200 (MEST)

I use Suse on a few machines. It is the best desktop linux I think.
But, as admin goes, it is tied up in a windows like model
of doing everything by user interface (Yast).

To run cfengine on SusE, I ignore the packages and install
manually in /var/cfengine/bin, with a rule to start cfagent
from cron every half-hour or whatever. That then starts
cfservd and all the other paraphenalia.

That way, you can keep everything SuSE and run cfengine
as normal.

M

On 28 Aug, Chip Seraphine wrote:
> We're starting to dabble in SuSE around here, and I am finding that it 
> is a little trick to get cfengine and the SuSE implementation of 
> chkconfig to play nicely together.
> 
> I am trying to add a "cfsengine" service that runs last and kicks off a 
> cfagent run and ensures cfservd started up.  Normally, I just have the 
> links: section do something like this:
> 
>       /etc/rc.d/rc0.d/K00cfengine     -> ../init.d/cfengine
>       /etc/rc.d/rc1.d/K00cfengine     -> ../init.d/cfengine
>       /etc/rc.d/rc2.d/K00cfengine     -> ../init.d/cfengine
>       /etc/rc.d/rc3.d/S99cfengine     -> ../init.d/cfengine
>       /etc/rc.d/rc5.d/S99cfengine     -> ../init.d/cfengine
> 
> Not so easy in SuSE.  I can't specify my preferred 'run numbers' in the 
> Required-Start and Required-Stop fileds, as insserv complains that that 
> is not SuSE-like behavior (they insist that you use their 
> differential-linking mechanism).  This means I cannot predict what 
> number will be assigned to the cfengine service.   And if I just treat 
> it like any other system and set the links myself, the next time 
> somebody runs chkconfig it will add a second set of links.
> 
> (This seems  SuSE-specific.  Other UnitedLinux implementations support 
> Required-Start/Stop, and RedHat doesn't do differential linking at all 
> and just leaves your symlinks alone.)
> 
> I also tried having the links section define a class if the links did 
> not exist, and then just running chkconfig.  Also no dice-- I can't get 
> any 'action' types work that don't do anything (all I want to do is set 
> a class; is the actions field in links: well documented somewhere?), and 
> even if I could it wouldn't matter since I can't put a glob expression 
> in the link path (which makes sense if all action types actually set 
> links, of course).
> 
> Short of putting in a horrible hack (like having the start script 
> accomodate being called twice during startup), does anybody know of a 
> good solution to this?
> 
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

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