<div dir="ltr"><div dir="ltr">On Thu, Feb 10, 2022 at 11:21 AM Ulrich Windl <<a href="mailto:Ulrich.Windl@rz.uni-regensburg.de">Ulrich.Windl@rz.uni-regensburg.de</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
I have a support case for SLES15 SP3 (systemd-246.16-7.33.1.x86_64) where smartd is restarted for no obvious reason. Support says everything is fine, but I disagree.<br>
Specifically smartd.service uses:<br>
<br>
[Service]<br>
Type=notify<br>
EnvironmentFile=-/var/lib/smartmontools/smartd_opts<br>
ExecStart=/usr/sbin/smartd -n $smartd_opts<br>
ExecReload=/bin/kill -HUP $MAINPID<br>
<br>
And mostly I wonder to what types of changes "notify" does react.<br></blockquote><div><br></div><div>None. It's not an activation mechanism and not a configuration monitoring mechanism – it's a readiness indication mechanism.</div><div><br></div><div>Type=notify expects the service to send a message to a Unix socket (at $NOTIFY_SOCKET) indicating that it is "ready". (And optionally some custom text to show in 'systemctl status'.)</div><div><br></div></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">Mantas Mikulėnas</div></div></div>