help-cfengine
[Top][All Lists]
Advanced

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

RE: processes not working on restart of sshd


From: Garrett, Matt M SITI-ITDIEEE
Subject: RE: processes not working on restart of sshd
Date: Tue, 23 Sep 2003 17:17:14 +0100

Mark

Even if I ran this on a client that not had cfengine run on for over 72hrs
(Cfengine is at the moment only run by hand - cfrun - on the server)
It did not make any difference.

The only option was to use: cfagent.conf

  IfElapsed = ( 0 )
  ExpireAfter = ( 1 )

I dare say this might be a issue with Security and Spaming.
but I would have thought after 72hr or more that cfagent would run and do the 
kill / restart
with out any problems.

But I might be wrong .

Thanks for all your help.

Matt



Matthew Garrett
Unix System Support
Shell Information Technology International Limited
Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, United Kingdom

Tel: +44 (0)1224 81 8373 Other Tel: Internal 630 8373
Email: Matt.M.Garrett@is.shell.com
Internet: http://www.shell.com


> -----Original Message-----
> From: Mark.Burgess@iu.hio.no [mailto:Mark.Burgess@iu.hio.no]
> Sent: 23 September 2003 16:06
> To: Garrett, Matt M SITI-ITDIEEE
> Subject: Re: processes not working on restart of sshd
> 
> 
> 
> As the previous author write;
> 
> cfengine:abew660: Nothing scheduled for processes.allprocs 
> (0/1 minutes elapsed)
> 
> This means that you executed this only a minute ago, so it 
> will not be done
> again. See ifelapsed in the manual.
> 
> Mark
> 
> 
> On 23 Sep, Garrett, Matt M SITI-ITDIEEE wrote:
> > Mark
> > 
> > A full copy of the debug 2 is attached.
> > Sorry to send it direct to you only.
> > But it does hold usfull info for others e.g hostnames , ip 
> address etc
> > 
> > The only thing I can see , that might be wrong is the line
> > Unable to delete lock 
> [lock.cfagent_conf.abew660.processes.allprocs]: DB_NOTFOUND: 
> No matching key/data pair found
> > 
> > But I dont think this is the problem ?
> > 
> > Matt
> > 
> > 
> > Matthew Garrett
> > Unix System Support
> > Shell Information Technology International Limited
> > Seafield House, North Anderson Drive, Aberdeen AB15 6GZ, 
> United Kingdom
> > 
> > Tel: +44 (0)1224 81 8373 Other Tel: Internal 630 8373
> > Email: Matt.M.Garrett@is.shell.com
> > Internet: http://www.shell.com
> > 
> > 
> >> -----Original Message-----
> >> From: Mark Burgess [mailto:Mark.Burgess@iu.hio.no]
> >> Sent: 23 September 2003 14:30
> >> To: Garrett, Matt M SITI-ITDIEEE
> >> Cc: help-cfengine@gnu.org
> >> Subject: Re: processes not working on restart of sshd
> >> 
> >> 
> >> On 23 Sep, Garrett, Matt M SITI-ITDIEEE wrote:
> >> > Folks / Mark
> >> > 
> >> > I have been trying to get cfengine to use the process: option to
> >> > restart sshd
> >> > 
> >> > Syntax I have is:
> >> > 
> >> > 
> >> > control:
> >> > 
> >> > 
> >> >   domain = ( XXX.com )
> >> > 
> >> > 
> >> >   actionsequence = ( copy processes )
> >> > 
> >> > copy: 
> >> > #LOTS of COPY by System TYPE.
> >> > 
> >> > 
> >> > processes:
> >> > 
> >> >     "sshd" signal=kill restart "/usr/local/openssh/sbin/sshd"
> >> > 
> >> 
> >> My guess is that the ps command that you are using 
> truncates the sshd
> >> entry before it can be detected. You could try running with -d2
> >> to see what is going on. 
> >> 
> >> I have tested this here and it is working on my version. Nothing
> >> has happened in the processes code for quite a while.
> >> 
> >> Mark
> >> 
> >> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >> Work: +47 22453272            Email:  Mark.Burgess@iu.hio.no
> >> Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
> >> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> >> 
> >> 
> 
> 
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 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]