Project

General

Profile

Actions

Bug #7238

closed

service rudder-agent stop -> stay running

Added by Francois BAYART about 9 years ago. Updated over 7 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Agent
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
UX impact:
User visibility:
Getting started - demo | first install | level 1 Techniques
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

I had a doubt with "service rudder-agent stop" so I made a simple test : try "service rudder-agent stop" during cf-execd is running.

step1 wait to have cf-execd running
like this :
20580 ? Ssl 0:00 /var/rudder/cfengine-community/bin/cf-execd
20666 ? S 0:00 \_ sh -c "/var/rudder/cfengine-community/bin/cf-agent" -f failsafe.cf && "/var/rudder/cfengi
20667 ? S 0:00 \_ /var/rudder/cfengine-community/bin/cf-agent -f failsafe.cf

step 2 run service rudder-agent stop
root@pv2-971de:~# service rudder-agent stop
rudder-agent20682: [INFO] Using /etc/default/rudder-agent for configuration
rudder-agent20685: [INFO] Using /var/rudder/cfengine-community for CFEngine workdir
rudder-agent20686: [INFO] Halting CFEngine Community cf-serverd...
rudder-agent20690: [OK] CFEngine Community cf-serverd stopped after 2 seconds
rudder-agent20691: [INFO] Halting CFEngine Community cf-execd...
rudder-agent20726: [OK] CFEngine Community cf-execd stopped after 13 seconds

All is okay ! ...

step 3 observe cf-execd
20666 ? S 0:00 sh -c "/var/rudder/cfengine-community/bin/cf-agent" -f failsafe.cf && "/var/rudder/cfengine-c
20667 ? Rs 0:01 \_ /var/rudder/cfengine-community/bin/cf-agent -f failsafe.cf

step4 observe cf-execd run cf-serverd
20666 ? S 0:00 sh -c "/var/rudder/cfengine-community/bin/cf-agent" -f failsafe.cf && "/var/rudder/cfengine-c
20736 ? Ss 0:06 \_ /var/rudder/cfengine-community/bin/cf-agent -Dfrom_cfexecd
20910 ? S 0:00 \_ /var/rudder/cfengine-community/bin/cf-serverd

+wait ... and +

20666 ? S 0:00 sh -c "/var/rudder/cfengine-community/bin/cf-agent" -f failsafe.cf && "/var/rudder/cfengine-c
20736 ? Ss 0:06 \_ /var/rudder/cfengine-community/bin/cf-agent -Dfrom_cfexecd
21068 ? S 0:00 \_ /var/rudder/cfengine-community/bin/cf-execd
21067 ? Ss 0:00 /var/rudder/cfengine-community/bin/cf-serverd <== welcome back my friend

step5 observe cf-execd run cf-execd
if you have good eyes you have see PID 21068 in the previous step

21067 ? Ss 0:00 /var/rudder/cfengine-community/bin/cf-serverd
21227 ? Ss 0:00 /var/rudder/cfengine-community/bin/cf-execd <== welcome back Sir !

Actions

Also available in: Atom PDF