public inbox for buildroot@busybox.net
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/syrepo: fix SysV init script
@ 2020-04-20  9:57 Heiko Thiery
  2020-04-25 14:22 ` Thomas Petazzoni
  0 siblings, 1 reply; 7+ messages in thread
From: Heiko Thiery @ 2020-04-20  9:57 UTC (permalink / raw)
  To: buildroot

The sysrepo-plugind does not support to be controlled via the PID by the
start-stop-daemon. This is because sysrepo-plugind does a fork.
Thus the daemon is running with another PID known by start-stop-daemon.

Now use the '-x' option of start-stop-daemon to stop.

Signed-off-by: Heiko Thiery <heiko.thiery@gmail.com>
---
 package/sysrepo/S51sysrepo-plugind | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/package/sysrepo/S51sysrepo-plugind b/package/sysrepo/S51sysrepo-plugind
index 74b68396bf..9e15da59f9 100644
--- a/package/sysrepo/S51sysrepo-plugind
+++ b/package/sysrepo/S51sysrepo-plugind
@@ -1,7 +1,6 @@
 #!/bin/sh
 
 DAEMON="sysrepo-plugind"
-PIDFILE="/var/run/$DAEMON.pid"
 
 SYSREPO_PLUGIND_ARGS=""
 
@@ -23,7 +22,7 @@ start() {
 
 stop() {
 	printf 'Stopping %s: ' "$DAEMON"
-	start-stop-daemon -K -q -p $PIDFILE
+	start-stop-daemon -K -q -x "/usr/bin/$DAEMON"
 	status=$?
 	if [ "$status" -eq 0 ]; then
 		echo "OK"
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-25 20:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-20  9:57 [Buildroot] [PATCH 1/1] package/syrepo: fix SysV init script Heiko Thiery
2020-04-25 14:22 ` Thomas Petazzoni
2020-04-25 15:26   ` Heiko Thiery
2020-04-25 19:37     ` Thomas Petazzoni
2020-04-25 19:58       ` Heiko Thiery
2020-04-25 20:07         ` Thomas Petazzoni
2020-04-25 20:18           ` Heiko Thiery

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox