[packages/glibc] Use daemon for nscd stopping.
Elan Ruusamäe
glen at pld-linux.org
Mon Dec 4 20:56:38 CET 2017
On 04.12.2017 10:04, arekm wrote:
> commit 79efd8a0df572c3cf944286dbf85c3e9588fd467
> Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
> Date: Mon Dec 4 09:04:21 2017 +0100
>
> Use daemon for nscd stopping.
using "daemon" to kill processes is wrong in many corners.
i don't have details at hand, but there were compatibility issues when
using start-stop-daemon mode in rc-scripts.
find better solution.
>
> nscd.init | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
> ---
> diff --git a/nscd.init b/nscd.init
> index 3429b36..d84ea79 100644
> --- a/nscd.init
> +++ b/nscd.init
> @@ -34,10 +34,8 @@ start() {
> stop() {
> if [ -f /var/lock/subsys/nscd ]; then
> msg_stopping "Name Switch Cache Daemon"
> - busy
> - /usr/sbin/nscd -K
> + daemon /usr/sbin/nscd -K
> rm -f /var/lock/subsys/nscd >/dev/null 2>&1
> - ok
> else
> msg_not_running "Name Switch Cache Daemon"
> fi
--
glen
More information about the pld-devel-en
mailing list