Bug#865912: smartd: please start with Type=forking to wait for successful initialisation

2019-01-02 Thread Christian Franke

BTW: smartmontools 7.0 supports Type=notify.
https://www.smartmontools.org/browser/tags/RELEASE_7_0/smartmontools/NEWS



Bug#865912: smartd: please start with Type=forking to wait for successful initialisation

2018-09-01 Thread Christian Franke

See also upstream tickets:
https://www.smartmontools.org/ticket/1080
https://www.smartmontools.org/ticket/1081



Bug#865912: smartd: please start with Type=forking to wait for successful initialisation

2017-06-25 Thread Peter Colberg
Package: smartmontools
Version: 6.5+svn4324-1
Severity: normal

Dear Maintainer,

Please improve smartd.service to wait for smartd to initialise:

[Service]
Type=forking
EnvironmentFile=-/etc/default/smartmontools
ExecStart=/usr/sbin/smartd $smartd_opts

Forking to the background (Type=forking) is the recommended way to
signal to systemd that a daemon has initialised successfully and is
ready for operation; at least for daemons without explicit systemd
support (Type=notify).

In this particular case, "systemd restart smartd" will give immediate
feedback of a failure if the user makes a mistake in /etc/smartd.conf.

Regards,
Peter