[Buildroot] [PATCH v7 1/1] package/unscd: new package
Thomas Petazzoni
thomas.petazzoni at free-electrons.com
Wed Dec 23 13:13:40 UTC 2015
Hello,
On Wed, 23 Dec 2015 06:59:29 -0600, rdkehn at yahoo.com wrote:
> A PID file is created by unscd in /var/run/nscd/ when it is started.
> The PID file is deleted when unscd is stopped; however, the
> /var/run/nscd/ directory remains.
>
> unscd can be started in debug mode (a.k.a foreground, -d option). In
> doing so, PID file creation could be done in the init script as
> requested. The problem I see here is that unscd logs to stderr when
> started in debug mode.
>
> Do you still prefer a patch for PID file creation in the init
> script?
You can tell start-stop-daemon that the PID file is created by the
daemon itself. Basically, pass just the -p <pid-file> option when
starting and stopping the daemon. As long as you don't pass -m when
starting the daemon, start-stop-daemon does not create the pid file.
See man start-stop-daemon(8) for all the details.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
More information about the buildroot
mailing list