[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: restarting cfserv when changing cfservd.conf
From: |
Christian Pearce |
Subject: |
Re: restarting cfserv when changing cfservd.conf |
Date: |
Wed, 28 Jul 2004 13:38:46 -0400 |
Isn't cfservd suppose to reread the config file? I know this worked at
one point in time. Now it seems to be broken...
I do get the "Checking file updates on /var/cfengine/inputs/cfservd.conf
(4107d14b/4107d153)" when running in debug mode. But if I edit the file
nothing happens.
One thing I did notice is the Debug used newstat.st_ctime and the if
uses newstat.st_mtime. Shouldn't this be ctime?
Debug("Checking file updates on %s (%x/%x)\n",filename,
newstat.st_ctime, CFDSTARTTIME);
if (CFDSTARTTIME < newstat.st_mtime)
{
snprintf(OUTPUT,CF_BUFSIZE*2,"Rereading config files
%s..\n",filename);
CfLog(cfinform,OUTPUT,"");
/* Free & reload -- lock this to avoid access errors during reload */
On Fri, 2004-07-23 at 13:18, Mario Domgörgen wrote:
> Darren <fflanda@gmail.com> writes:
>
>
> >> It seems i have to restart cfserv when i change cfservd.conf ... is
> >> there a intelligent way to do that, or do i have to restart it every
> >> session?
>
> > copy:
> > $(Depot)/cfservd.conf
> > server=$(MasterServer) dest=/var/cfengine/inputs/cfservd.conf
> > m=644 o=0 g=0 act=fix
> > define=CopiedCfservd
> >
> > processes:
> > CopiedCfservd::
> > "/usr/local/sbin/cfservd"
> > signal=kill inform=true
> > restart "/etc/init.d/cfservd start"
>
> Ah, nifty idea... :)
>
> Thanks!
>
> Mario
--
Christian Pearce
http://www.commnav.com
http://www.perfectorder.com