Project

General

Profile

Actions

Bug #11824

closed

reload-cf-serverd fails if cf-serverd not running and /sbin not in PATH

Added by Janos Mattyasovszky over 6 years ago. Updated about 6 years ago.

Status:
Released
Priority:
N/A
Category:
Server components
Target version:
Severity:
Minor - inconvenience | misleading | easy workaround
UX impact:
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Small
Priority:
46
Name check:
Fix check:
Regression:

Description

This commit introduced the reload by service restart:

https://github.com/Normation/rudder-packages/commit/b125170ec4d5b3a045f49f6f16d0a104f507b291#diff-c139a8d70dc00277a044a7762c1cde87

But apparently /sbin is not in the PATH for (at least our) SLES systems.

Policy update process was stopped due to an error:

⇨ Policy update error for process '751' at 2017-12-05 14:29:33 
⇨ Exit code=-2147483648 for hook: '/opt/rudder/etc/hooks.d/policy-generation-finished/50-reload-policy-file-server'.
stdout: /usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:.

stderr: 'kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
/opt/rudder/bin/rudder-reload-cf-serverd: line 15: service: command not found

stdout currently shows echo $PATH being executed, and that lacks /sbin, so I suggest to either extend the PATH variable in the script or call it with full /sbin/service path...


Related issues 1 (0 open1 closed)

Related to Rudder - Bug #10493: If cf-serverd is not up, hook 50-reload-policy-file-server is in error and breaks policy generationReleasedBenoît PECCATTEActions
Actions

Also available in: Atom PDF