Project

General

Profile

Actions

Bug #7237

closed

no pid check in rudder-agent init script

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

Status:
Rejected
Priority:
N/A
Category:
Agent
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

I have the crazy idea to run every often "service rudder-agent start", so I'm testing this to be sure it's possible and the result seems to be not.

service rudder-agent start && service rudder-agent start && ps fax

=>
28066 ? Ss 0:00 /var/rudder/cfengine-community/bin/cf-serverd
29955 ? Ss 0:00 /var/rudder/cfengine-community/bin/cf-execd
30342 ? Ss 0:00 /var/rudder/cfengine-community/bin/cf-execd

the cf-execd PID is present ( /var/rudder/cfengine-community/cf-execd.pid ) with the value of the last started process.

In the source code (line 188) https://github.com/Normation/rudder-packages/blob/master/rudder-agent/SOURCES/rudder-agent.init#L188 the seems missed just a comment "# Presence of PID file"

After few minutes the cf-execd processes are all killed.

Actions

Also available in: Atom PDF