X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-flock%2Fstx-nfv%2Ffiles%2F0003-guest-agent-server-fix-daemon-paths.patch;fp=meta-starlingx%2Fmeta-stx-flock%2Fstx-nfv%2Ffiles%2F0003-guest-agent-server-fix-daemon-paths.patch;h=45ef377c14383b871f4009be208db1ad39282685;hb=e0634c6eaf2fe2641a0fb90e84a5defb880b1335;hp=0000000000000000000000000000000000000000;hpb=210d0f78485e760dffcdd3f630f59cec797f3f11;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-flock/stx-nfv/files/0003-guest-agent-server-fix-daemon-paths.patch b/meta-starlingx/meta-stx-flock/stx-nfv/files/0003-guest-agent-server-fix-daemon-paths.patch new file mode 100644 index 0000000..45ef377 --- /dev/null +++ b/meta-starlingx/meta-stx-flock/stx-nfv/files/0003-guest-agent-server-fix-daemon-paths.patch @@ -0,0 +1,52 @@ +diff --git a/mtce-guest/src/scripts/guestAgent b/mtce-guest/src/scripts/guestAgent +index a0a7b0e..41b5559 100644 +--- a/mtce-guest/src/scripts/guestAgent ++++ b/mtce-guest/src/scripts/guestAgent +@@ -20,7 +20,7 @@ + . /etc/init.d/functions + + DAEMON_NAME="guestAgent" +-DAEMON="/usr/local/bin/${DAEMON_NAME}" ++DAEMON="/usr/bin/${DAEMON_NAME}" + PIDFILE="/var/run/${DAEMON_NAME}.pid" + PLATFORM_CONF="/etc/platform/platform.conf" + +diff --git a/mtce-guest/src/scripts/guestAgent.service b/mtce-guest/src/scripts/guestAgent.service +index 5a54ba7..c447305 100644 +--- a/mtce-guest/src/scripts/guestAgent.service ++++ b/mtce-guest/src/scripts/guestAgent.service +@@ -7,7 +7,7 @@ Type=forking + ExecStart=/etc/init.d/guestAgent start + ExecStop=/etc/init.d/guestAgent stop + ExecReload=/etc/init.d/guestAgent reload +-PIDFile=/var/run/guestAgent.pid ++PIDFile=/run/guestAgent.pid + + Restart=no + +diff --git a/mtce-guest/src/scripts/guestServer b/mtce-guest/src/scripts/guestServer +index ace6a41..1008ad5 100644 +--- a/mtce-guest/src/scripts/guestServer ++++ b/mtce-guest/src/scripts/guestServer +@@ -20,7 +20,7 @@ + . /etc/init.d/functions + + DAEMON_NAME="guestServer" +-DAEMON="/usr/local/bin/${DAEMON_NAME}" ++DAEMON="/usr/bin/${DAEMON_NAME}" + PIDFILE="/var/run/${DAEMON_NAME}.pid" + PLATFORM_CONF="/etc/platform/platform.conf" + +diff --git a/mtce-guest/src/scripts/guestServer.service b/mtce-guest/src/scripts/guestServer.service +index 1feb327..7a63e6a 100644 +--- a/mtce-guest/src/scripts/guestServer.service ++++ b/mtce-guest/src/scripts/guestServer.service +@@ -8,7 +8,7 @@ Type=forking + ExecStart=/etc/init.d/guestServer start + ExecStop=/etc/init.d/guestServer stop + ExecReload=/etc/init.d/guestServer reload +-PIDFile=/var/run/guestServer.pid ++PIDFile=/run/guestServer.pid + + # Failure handling + TimeoutStartSec=10s