Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/unscd: add PID file to init script
@ 2015-12-23 13:54 Doug Kehn
  2015-12-23 16:46 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Doug Kehn @ 2015-12-23 13:54 UTC (permalink / raw)
  To: buildroot

unscd creates/manages it's own PID file. Pass PID file reference to
start-stop-daemon.

Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
---
 package/unscd/S46unscd | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/package/unscd/S46unscd b/package/unscd/S46unscd
index 7d18f94..6a51eec 100644
--- a/package/unscd/S46unscd
+++ b/package/unscd/S46unscd
@@ -2,16 +2,17 @@
 
 NAME="nscd"
 DAEMON="/usr/sbin/${NAME}"
+PID_F="/var/run/nscd/${NAME}.pid"
 
 case "$1" in
 start)
         printf "Starting ${NAME}: "
-        start-stop-daemon -S -x ${DAEMON}
+        start-stop-daemon -S -p ${PID_F} -x ${DAEMON}
         [ $? -eq 0 ] && echo "OK" || echo "FAIL"
         ;;
 stop)
         printf "Stopping ${NAME}: "
-        start-stop-daemon -K -x ${DAEMON}
+        start-stop-daemon -K -p ${PID_F}
         [ $? -eq 0 ] && echo "OK" || echo "FAIL"
         ;;
 restart|reload)
-- 
2.6.4

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

* [Buildroot] [PATCH 1/1] package/unscd: add PID file to init script
  2015-12-23 13:54 [Buildroot] [PATCH 1/1] package/unscd: add PID file to init script Doug Kehn
@ 2015-12-23 16:46 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-12-23 16:46 UTC (permalink / raw)
  To: buildroot

Dear Doug Kehn,

On Wed, 23 Dec 2015 07:54:40 -0600, Doug Kehn wrote:
> unscd creates/manages it's own PID file. Pass PID file reference to
> start-stop-daemon.
> 
> Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
> Signed-off-by: Doug Kehn <rdkehn@yahoo.com>
> ---
>  package/unscd/S46unscd | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2015-12-23 16:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-23 13:54 [Buildroot] [PATCH 1/1] package/unscd: add PID file to init script Doug Kehn
2015-12-23 16:46 ` Thomas Petazzoni

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