help-cfengine
[Top][All Lists]
Advanced

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

Re: Use of editfile to support templated configuration files


From: Tim Nelson
Subject: Re: Use of editfile to support templated configuration files
Date: Wed, 15 Dec 2004 16:33:35 +1100 (EST)

On Wed, 14 Dec 2004 address@hidden wrote:

On a related front, has anyone played with external modules or the m4
macro processor to simplify management of init scripts and services,
along the lines suggested at
[http://cfwiki.org/cfwiki/index.php/Co-operating_with_Vendor_initscripts]?

I've made limited progress using m4, but may be re-inventing the wheel.

I've got a mostly working script called "service-extra" that does some of the same stuff.

For those who aren't redhat aficionados, Redhat has a script called "service", which basically runs "/etc/rc.d/init.d/$1 $2". The idea is that you go eg. "service httpd restart", instead of typing in the full thing. I called mine "service-extra", because they're actions that I'd like to see in "service" someday. It has 3 actions:
permstart: start + chkconfig on
permstop: stop + chkconfig off
clean-restart: stop, kill all processes, start

Anyway, I run this script from shellcommands. It doesn't really answer your question, but I thought it might interest.

        :)

--
Tim Nelson
Server Administrator
WebAlive Technologies Global
Level 1 Innovation Building, Digital Harbour
1010 LaTrobe Street
Docklands, Melbourne, Vic, 3008
Phone: +61 3 9934 0812
Fax: +61 3 9934 0899
E-mail: address@hidden
http://www.webalive.biz/




reply via email to

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