* [PATCH 0/1] distcc: fix initscript can not stop distcc daemon correctly
@ 2015-01-22 9:09 Hongxu Jia
2015-01-22 9:09 ` [PATCH 1/1] " Hongxu Jia
0 siblings, 1 reply; 2+ messages in thread
From: Hongxu Jia @ 2015-01-22 9:09 UTC (permalink / raw)
To: openembedded-core, ross.burton
The following changes since commit c45589a55c67bfd0bf9da5050141f4d18835e113:
poky.conf: mark all CentOS 6/7 versions as compatible (2015-01-12 13:31:08 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib hongxu/fix-distcc
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/fix-distcc
Hongxu Jia (1):
distcc: fix initscript can not stop distcc daemon correctly
meta/recipes-devtools/distcc/files/distcc | 5 +++++
1 file changed, 5 insertions(+)
--
1.9.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] distcc: fix initscript can not stop distcc daemon correctly
2015-01-22 9:09 [PATCH 0/1] distcc: fix initscript can not stop distcc daemon correctly Hongxu Jia
@ 2015-01-22 9:09 ` Hongxu Jia
0 siblings, 0 replies; 2+ messages in thread
From: Hongxu Jia @ 2015-01-22 9:09 UTC (permalink / raw)
To: openembedded-core, ross.burton
The distcc's initscript has used option '--pid-file' to save daemon
process id, but it didn't to create that file, that caused start/stop
distcc daemon failed.
We refer what Ubuntu 14.04 did, create pid file before start and
delete it after stop
[YOCTO #7090]
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
meta/recipes-devtools/distcc/files/distcc | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/meta/recipes-devtools/distcc/files/distcc b/meta/recipes-devtools/distcc/files/distcc
index c7c414d..e36f0fa 100755
--- a/meta/recipes-devtools/distcc/files/distcc
+++ b/meta/recipes-devtools/distcc/files/distcc
@@ -51,6 +51,9 @@ should_start() {
echo "$DAEMON not starting"
exit 0
fi
+ # we need permission to write to the pid file
+ touch /var/run/$NAME.pid
+ chown distcc /var/run/$NAME.pid
}
case "$1" in
@@ -75,6 +78,7 @@ case "$1" in
echo "$0: stop failed with error code $code" >&2
exit $code
}
+ rm -f /var/run/$NAME.pid >/dev/null 2>&1
echo "."
;;
restart|force-reload)
@@ -92,6 +96,7 @@ case "$1" in
--exec $DAEMON -- $DAEMON_ARGS $ALLOW ||
{
code=$?
+ rm -f /var/run/$NAME.pid >/dev/null 2>&1
echo "$0: restart failed with error code $code" >&2
exit $code
}
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-22 9:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 9:09 [PATCH 0/1] distcc: fix initscript can not stop distcc daemon correctly Hongxu Jia
2015-01-22 9:09 ` [PATCH 1/1] " Hongxu Jia
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.