help-cfengine
[Top][All Lists]
Advanced

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

Re: Maintaining RC symlinks


From: Eric Sorenson
Subject: Re: Maintaining RC symlinks
Date: Fri, 11 Jun 2004 13:54:51 -0700 (PDT)

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





reply via email to

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