help-cfengine
[Top][All Lists]
Advanced

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

Re: cfsaved file


From: Daniel Nilsson
Subject: Re: cfsaved file
Date: Thu, 2 Oct 2003 13:50:43 +0200 (CEST)

>From                                                          "Disabling
and the file repository".

Its possible to switch off backup file generation in the copy feature by
setting the variable backup=false, but a better way of managing disabled
and backed-up files is to use a directory in which you collect all such
files for the whole system. This directory is called the file repository
and is set in the control part of the program, as follows:

control:

  repository = ( /var/spool/cfengine )

/// D

On Thu, 2 Oct 2003, Garrett, Matt M SITI-ITDIEEE wrote:

> Folks / Mark
>
> Come across a small problem with cfengine 2.0.7p3 and copy saved files.
>
> One of the copies , copies files in to /etc/rc3.d on a Solaris 8 system
> Now the file gets backed up to filename.cfsaved e.g S99sshd.cfsaved
>
> The problem is that on a reboot both the original and the backup file also 
> get run.
> e.g
> /etc/rc3.d/S99sshd
> /etc/rc3.d/S99sshd.cfsaved
>
> Now I could use the copy , backup=false option
> So I don't get a backed up file.
>
> However I quite like the idea of getting a backup file just in case something 
> is wrong.
>
> It is possible to append a character to the front of the file name e.g 
> _S99sshd.cfsaved
>
> The only problem I could see is that it would effect all file's , not just rc 
> start-up files.
> However I could live with this.
>
> Any thoughts on this.
>
> Thanks
>
> Matt
>
>
> Matthew Garrett
> Unix System Support
> Shell Information Technology International Limited
> Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom
>
>
>




reply via email to

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