help-cfengine
[Top][All Lists]
Advanced

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

Re: editfiles question


From: Mark . Burgess
Subject: Re: editfiles question
Date: Wed, 1 Sep 2004 18:08:12 +0200 (MEST)

Make a patch ;)

M

On  1 Sep, Sven Mueller wrote:
> Mark.Burgess@iu.hio.no [u] wrote on 01/09/2004 17:30:
> 
>> This any use?
>> 
>> http://www.cfengine.org/confdir/customizepasswd.html
> 
> Not really, at least not for my situation:
> - I _must_ avoid unneeded restarts,
> - but restarts are _needed_ when I edit the configuration file.
>  > The configuration file isn't /etc/passwd, but has a very
>    similar format (maybe /etc/aliases would be a better example).
> 
> So I really have to find a way to replace existing lines starting with 
> the same first field's content as the replacement. Also, if no matching 
> line is found, I must append the replacement line. If any of these two 
> actions took place (and thus the file actually changed), I want to 
> define a class to later restart the corresponding program.
> 
> If cfengine can't achieve this by itself, I will have to do it via an 
> external script, but this is such a common task that I really think 
> cfengine should be able to do it out of the box.
> 
> cu,
> sven



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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]