<p dir="ltr">On Fri, Apr 3, 2015, 14:17 Lennart Poettering <<a href="mailto:lennart@poettering.net">lennart@poettering.net</a>> wrote:</p>
<p dir="ltr"><br>
</p>
<blockquote><p dir="ltr">On Thu, 02.04.15 11:49, Al Lau (<a href="mailto:lauatic@gmail.com">lauatic@gmail.com</a>) wrote:</p>
<p dir="ltr">> As a test, the "/usr/sbin/smartd $smartd_opts" is invoked from the command<br>
> line and the daemon is forked and stayed up as expected.  By default, the<br>
> /usr/sbin/smartd daemonize.</p>
<p dir="ltr">Well, but does it do that correctly? i.e. does it *double* fork, not<br>
just once? Does it write the PID file *before* exiting in the parent?</p>
</blockquote>
<blockquote><p dir="ltr"><br>
</p>
</blockquote>
<p dir="ltr"><br>
Actually why does it need a pidfile in the first place? Systemd is usually good at guessing the mainpid.</p>
<p dir="ltr"><br>
</p>