[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
matches=0 still triggers action
From: |
David E. Nelson |
Subject: |
matches=0 still triggers action |
Date: |
Tue, 2 Nov 2004 07:57:39 -0600 (CST) |
Hi All,
I've the following stanza in my cfengine-2.1.10 cfagent.conf file:
solaris.externalnets::
"lpsched$" # External systems do not run print services
matches=0
action=bymatch
restart "/etc/init.d/lp stop"
and even though 'lpsched' is not running, cfengine still attempts to stop
printing services.
Below is the relevant output from 'cfagent -v -d1'. Not sure if "DB_NOTFOUND:
No matching key/data pair found" is of concern or not.
GetLock(processes,proc_lpsched___etc_init_d_lp_stop,time=1099402306),
ExpireAfter=45, IfElapsed=0
GetLastLock()
CheckOldLock(lock.cfagent_conf.galaxian.processes.proc_lpsched___etc_init_d_lp_stop)
Unable to find lock data
lock.cfagent_conf.galaxian.processes.proc_lpsched___etc_init_d_lp_stop
SetLock(lock.cfagent_conf.galaxian.processes.proc_lpsched___etc_init_d_lp_stop)
PutLock(lock.cfagent_conf.galaxian.processes.proc_lpsched___etc_init_d_lp_stop)
Found no lock
[lock.cfagent_conf.galaxian.processes.proc_lpsched___etc_init_d_lp_stop]:
DB_NOTFOUND: No matching key/data pair found
Start of UID is 5
Col[0]=UID
End of UID is 7
Start of PID is 11
Col[1]=PID
End of PID is 13
Start of PPID is 16
Col[2]=PPID
End of PPID is 19
Start of C is 22
Col[3]=C
End of C is 22
Start of STIME is 27
Col[4]=STIME
End of STIME is 31
Start of TTY is 33
Col[5]=TTY
End of TTY is 35
Start of TIME is 42
Col[6]=TIME
End of TIME is 45
Start of CMD is 47
Col[7]=CMD
End of CMD is 49
Defining classes
Existing restart sequence found (/etc/init.d/lp stop)
cfengine:galaxian: Executing shell command: /etc/init.d/lp stop
(Setting umask to 77)
cfpopen(/etc/init.d/lp stop)
cfengine:galaxian: Restart: Print services already stopped.
cfengine:galaxian: (Done with /etc/init.d/lp stop)
ReleaseCurrentLock(lock.cfagent_conf.galaxian.processes.proc_lpsched___etc_init_d_lp_stop)
PutLock(last.cfagent_conf.galaxian.processes.proc_lpsched___etc_init_d_lp_stop)
LockLog(Lock removed normally )
Job start time set to Tue Nov 2 07:32:15 2004
Any ideas?
Thanks,
/\/elson
--
~~ ** ~~ If you didn't learn anything when you broke it the 1st ~~ ** ~~
time, then break it again.
- matches=0 still triggers action,
David E. Nelson <=