help-cfengine
[Top][All Lists]
Advanced

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

Re: Maintaining RC symlinks


From: Jamie Wilkinson
Subject: Re: Maintaining RC symlinks
Date: Fri, 11 Jun 2004 11:01:02 +1000
User-agent: Mutt/1.5.6i

This one time, at band camp, 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...

I can't say wether it's clever or not, but this is what I use on my Red
Hat machines:

shellcommands:

  foo_server.redhat::

    "/sbin/chkconfig --list foo | grep 3:off"
        useshell=true
        inform=false
        define=foo_restart
        define=foo_chkconfig_on

  foo_chkconfig_on::

    "/sbin/chkconfig foo on"
        useshell=false

  foo_restart.redhat::

    "/sbin/service foo restart"
      useshell=false

-- 
jaq@spacepants.org                           http://spacepants.org/jaq.gpg




reply via email to

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