help-cfengine
[Top][All Lists]
Advanced

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

Re: Maintaining RC symlinks


From: Chip Seraphine
Subject: Re: Maintaining RC symlinks
Date: Mon, 14 Jun 2004 07:07:37 -0500
User-agent: KMail/1.5.4

The only problem with that approach is that you'd have to build a custom 
turnOffServices and turnOnServices string for every (or almost every) host, 
which would be a real PITA in cfengine.

Hmmm.  Although a module could do it pretty easily....... 

On Friday 11 June 2004 15:54, you wrote:
> On Wed, 9 Jun 2004, Chip Seraphine wrote:
> 
> > I'm getting ready to write  a script for turning on and off SVR4-style 
start/
> > kill symlinks to init.d scripts (think chkconfig, but less friendly).  
Before 
> > I reinvent any wheels, I was wondering if anybody wants to share any 
really 
> > clever solutions or ideas for adding/removing links...
> 
> Maybe this is a cheap shot, but I figured if you're going to rely on an 
outside
> script you might appreciate it anyway : (long lines broken)
> 
> 
> control:
> 
>     actionsequence = ( shellcommands )
> 
>     turnOffServices = ( "canna:gpm:autofs:kudzu:sendmail:netfs:
>       ipchains:iptables:portmap:nfs:nfslock:xfs:xinetd:ypbind:
>       cfengine:snmpd:wine:mysqld" )
> 
>     turnOnServices = ( "sshd:httpd:ntpd" )
> 
> shellcommands:
> 
>     "/sbin/chkconfig --level 123456 $(turnOffServices) off" 
>     "/sbin/chkconfig --level 2345 $(turnOnServices) on" 
> 
> 
> -- 
> 
>     Eric Sorenson - EXPLOSIVE Networking - http://explosive.net
> 

-- 

Chip Seraphine
Unix Administrator
TradeLink, LLC
312-264-2048
address@hidden





reply via email to

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