[Top][All Lists]

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

problem with singlecopy & IfElapsed in 2.0.7p3

From: Jeff Wasilko
Subject: problem with singlecopy & IfElapsed in 2.0.7p3
Date: Tue, 15 Jul 2003 11:40:01 -0400
User-agent: Mutt/1.3.99i
User-agent: Mutt/1.3.99i

I've found that by setting IfElapsed = ( 0 ) will allow the 2nd
(more general) file copy to take place. It seems that sequential
copies of the same file should be exempt from the IfElapsed test.

----- Forwarded message from Jeff Wasilko <address@hidden> -----

Date: Mon, 14 Jul 2003 16:33:11 -0400
From: Jeff Wasilko <address@hidden>
To: address@hidden
Subject: problem with singlecopy in 2.0.7p3
Mail-Followup-To: address@hidden
User-Agent: Mutt/1.3.99i

I'm using singlecopy as discussed in 
to copy files once based on a variable.

The relevant bits of my config are:


        singlecopy      = ( on )
        # fileserver setup, some short two-letter variables copy: uses
        fs              = ( scully )        # fileserver
        dr              = ( /is/local/state/cfengine/distributed/) 
        SiteTulsa:: site        = ( SiteTulsa )
        SiteBedford:: site      = ( SiteBedford )

        # site specific (with host over-ride) copies go here
        $(dr)/etc/inet/ntp.conf.$(host) server=$(fs) dest=/etc/inet/ntp.conf 
            mode=444 owner=root group=other backup=false type=sum
            inform=true syslog=false
        $(dr)/etc/inet/ntp.conf.$(site) server=$(fs) dest=/etc/inet/ntp.conf
            mode=444 owner=root group=root backup=false type=sum
            inform=true syslog=false

It appears that cfengine is skilling the $site copy (here's
output from  cfagent -d3 -q:

 Main Tree Sched: copy pass 1 @ Mon Jul 14 16:30:09 2003

Checking copy from localhost:/is/local/state/cfengine/distributed//etc/inet/ntp.
conf.scully to /etc/inet/ntp.conf
cfengine:scully: Can't stat /is/local/state/cfengine/distributed//etc/inet/ntp.c
onf.scully in copy
Checking copy from localhost:/is/local/state/cfengine/distributed//etc/inet/ntp.
conf.SiteBedford to /etc/inet/ntp.conf
cfengine:scully: Nothing scheduled for copy._is_local_state_cfengine_distributed
__etc_inet_ntp__etc_inet_ntp_conf (0/1 minutes elapsed)
Saving the setuid log in /is/local/state/cfengine/cfagent.scully.log
Job start time set to Mon Jul 14 16:30:09 2003

Is the $host specific copy keeping the $site one from running 
(0/1 minutes elapsed)?

Any thoughts what may be going wrong?



----- End forwarded message -----

reply via email to

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