[Buildroot] [PATCH v7 1/1] package/unscd: new package

rdkehn at yahoo.com rdkehn at yahoo.com
Wed Dec 23 13:29:17 UTC 2015


Hi Thomas,

On Wed, Dec 23, 2015 at 02:13:40PM +0100, Thomas Petazzoni wrote:
> 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.
> 

Ah, you're not saying that you want stat-stop-daemon to create the
PID file. (It's early, coffee starting to kick in...)

Regards,
...doug



More information about the buildroot mailing list