On Fri, 03.04.15 19:38, Andrei Borzenkov (arvidj...@gmail.com) wrote:

> В Fri, 3 Apr 2015 13:17:05 +0200
> Lennart Poettering <lenn...@poettering.net> пишет:
> 
> > On Thu, 02.04.15 11:49, Al Lau (laua...@gmail.com) wrote:
> > 
> > > As a test, the "/usr/sbin/smartd $smartd_opts" is invoked from the command
> > > line and the daemon is forked and stayed up as expected.  By default, the
> > > /usr/sbin/smartd daemonize.
> > 
> > Well, but does it do that correctly? i.e. does it *double* fork, not
> 
> yes.
> 
> > just once? Does it write the PID file *before* exiting in the parent?
> > 
> 
> It does not write PID file unless explicitly requested by argument,
> which was the main cause of problem here.

Ah, so if you specify the flag to write it then all is good?

Lennart

-- 
Lennart Poettering, Red Hat
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to