meta-starlingx/meta-stx-flock/stx-metal/files/mtce-set-systemctl-path.patch
Jackie Huang 8f842934b6 mtce: fix a typo in the patch
Fix a typo in the patch:
systemctll -> systemctl

This fixes collectd not starting correctly.

Closes-Bug: 1897667

Change-Id: Ie7669230c67a746638372c147307af9496633ae1
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
2020-09-29 14:47:47 +00:00

14 lines
540 B
Diff

diff --git a/pmon/pmonHdlr.cpp b/pmon/pmonHdlr.cpp
index 7b5977d..c1d01b5 100644
--- a/pmon/pmonHdlr.cpp
+++ b/pmon/pmonHdlr.cpp
@@ -1245,7 +1245,7 @@ int respawn_process ( process_config_type * ptr )
ilog ("Service:%s\n", ptr->service ? ptr->service : "unknown");
- #define SYSTEMCTL_CMD "/usr/bin/systemctl"
+ #define SYSTEMCTL_CMD "/bin/systemctl"
#define RESTART_CMD "restart"
#define START_CMD "start"
if ( get_ctrl_ptr()->recovery_method == PMOND_RECOVERY_METHOD__SYSTEMD )