[systemd-devel] systemd and smartd daemon

Andrei Borzenkov arvidjaar at gmail.com
Fri Apr 3 21:33:05 PDT 2015


В Fri, 3 Apr 2015 19:16:59 +0200
Lennart Poettering <lennart at poettering.net> пишет:

> 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?
> 

Yes. Either no PIDFile or PIDFILE + "-p $PIDFile" - both work.


More information about the systemd-devel mailing list