<div dir="ltr"><span style="font-size:12.8000001907349px">Hi,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">I am seeking help and advise on troubleshooting the starting of the smartd daemon.  The /usr/sbin/smartd comes from the smartmontools version 6.3.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">The /usr/lib/systemd/system/smartd.service file looks like this</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div><font face="monospace, monospace"># cat /usr/lib/systemd/system/smartd.service</font></div><div><font face="monospace, monospace">[Unit]</font></div><div><font face="monospace, monospace">Description=Self Monitoring and Reporting Technology (SMART) Daemon</font></div><div><font face="monospace, monospace">Documentation=man:smartd(8) man:smartd.conf(5)</font></div><div><font face="monospace, monospace">After=syslog.target</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">[Service]</font></div><div><font face="monospace, monospace">Type=forking</font></div><div><font face="monospace, monospace">PIDFile=/run/smartd.pid</font></div><div><font face="monospace, monospace">ExecStartPre=/bin/rm -f /run/smartd.pid</font></div><div><font face="monospace, monospace">EnvironmentFile=/etc/sysconfig/smartmontools</font></div><div><font face="monospace, monospace">ExecStart=/usr/sbin/smartd $smartd_opts</font></div><div><font face="monospace, monospace">ExecReload=/bin/kill -HUP $MAINPID</font></div><div><font face="monospace, monospace">StandardOutput=syslog</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">[Install]</font></div><div><font face="monospace, monospace">WantedBy=multi-user.target</font></div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">When "systemctl start smartd.service" is called, the process forks into a daemon.  The problem I'm seeing is that the forked process received a SIGTERM signal and exited.  How do I resolve this so that the forked process would not get terminated.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><div><font face="monospace, monospace"># systemctl status smartd.service</font></div><div><font face="monospace, monospace">smartd.service - Self Monitoring and Reporting Technology (SMART) Daemon</font></div><div><font face="monospace, monospace">   Loaded: loaded (/usr/lib/systemd/system/smartd.service; enabled)</font></div><div><font face="monospace, monospace">   Active: failed (Result: timeout) since Thu 2015-04-02 17:19:49 GMT; 4min 39s ago</font></div><div><font face="monospace, monospace">     Docs: man:smartd(8)</font></div><div><font face="monospace, monospace">           man:smartd.conf(5)</font></div><div><font face="monospace, monospace">  Process: 7456 ExecStart=/usr/sbin/smartd $smartd_opts (code=exited, status=0/SUCCESS)</font></div><div><font face="monospace, monospace">  Process: 7454 ExecStartPre=/bin/rm -f /run/smartd.pid (code=exited, status=0/SUCCESS)</font></div><div><font face="monospace, monospace"> Main PID: 1075 (code=exited, status=0/SUCCESS)</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">Apr 02 17:18:20 007 smartd[7456]: Device: /dev/bus/0 [megaraid_disk_19], opened</font></div><div><font face="monospace, monospace">Apr 02 17:18:20 007 smartd[7456]: Device: /dev/bus/0 [megaraid_disk_19], [TOSHIBA  MG03SCA300       5702], lu ....00 TB</font></div><div><font face="monospace, monospace">Apr 02 17:18:20 007 smartd[7456]: Device: /dev/bus/0 [megaraid_disk_19], is SMART capable. Adding to "monitor" list. </font></div><div><font face="monospace, monospace">Apr 02 17:18:20 007 smartd[7456]: Monitoring 0 ATA and 12 SCSI devices </font></div><div><font face="monospace, monospace">Apr 02 17:18:21 007 systemd[1]: PID file /run/smartd.pid not readable (yet?) after start.</font></div><div><font face="monospace, monospace">Apr 02 17:18:21 007 smartd[7463]: smartd has fork()ed into background mode. New PID=7463.</font></div><div><font face="monospace, monospace">Apr 02 17:19:49 007 systemd[1]: smartd.service operation timed out. Terminating.</font></div><div><font face="monospace, monospace">Apr 02 17:19:49 007 smartd[7463]: smartd received signal 15: Terminated</font></div><div><font face="monospace, monospace">Apr 02 17:19:49 007 systemd[1]: Failed to start Self Monitoring and Reporting Technology (SMART) Daemon. </font></div><div><font face="monospace, monospace">Apr 02 17:19:49 007 systemd[1]: Unit smartd.service entered failed state.</font></div><div><font face="monospace, monospace">Hint: Some lines were ellipsized, use -l to show in full.</font></div><div><font face="monospace, monospace">#</font></div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">To verify, I take the "<span style="font-family:monospace,monospace;font-size:12.8000001907349px">/usr/sbin/smartd $smartd_opts" and run it from the command line.  The smartd daemon forks and the daemon process stays up as expected.</span></div><div style="font-size:12.8000001907349px"><span style="font-family:monospace,monospace;font-size:12.8000001907349px"><br></span></div><div style="font-size:12.8000001907349px">Thanks,</div><div style="font-size:12.8000001907349px">-Al</div></div>