[systemd-devel] systemd and smartd daemon

Lennart Poettering lennart at poettering.net
Fri Apr 3 10:16:59 PDT 2015


On Fri, 03.04.15 19:38, Andrei Borzenkov (arvidjaar at gmail.com) wrote:

> В Fri, 3 Apr 2015 13:17:05 +0200
> Lennart Poettering <lennart at poettering.net> пишет:
> 
> > On Thu, 02.04.15 11:49, Al Lau (lauatic at 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


More information about the systemd-devel mailing list