Skip to content
Snippets Groups Projects
Commit 5743a9da authored by chrfranke's avatar chrfranke
Browse files

smartd.cpp: Also prevent systemd unit startup timeout in `CheckDevicesOnce`.

Patch by GH user 'themylogin' (GH pull/141).

git-svn-id: https://svn.code.sf.net/p/smartmontools/code/trunk@5401 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent 4477aaab
No related branches found
No related tags found
No related merge requests found
$Id$ $Id$
2022-08-06 themylogin <themylogin@gmail.com>
smartd.cpp: Also prevent systemd unit startup timeout in
`CheckDevicesOnce` (GH pull/141).
2022-08-06 Christian Franke <franke@computer.org> 2022-08-06 Christian Franke <franke@computer.org>
drivedb.h: drivedb.h:
......
...@@ -3956,6 +3956,9 @@ static void CheckDevicesOnce(const dev_config_vector & configs, dev_state_vector ...@@ -3956,6 +3956,9 @@ static void CheckDevicesOnce(const dev_config_vector & configs, dev_state_vector
SCSICheckDevice(cfg, state, dev->to_scsi(), allow_selftests); SCSICheckDevice(cfg, state, dev->to_scsi(), allow_selftests);
else if (dev->is_nvme()) else if (dev->is_nvme())
NVMeCheckDevice(cfg, state, dev->to_nvme()); NVMeCheckDevice(cfg, state, dev->to_nvme());
// Prevent systemd unit startup timeout when checking many devices on startup
notify_extend_timeout();
} }
do_disable_standby_check(configs, states); do_disable_standby_check(configs, states);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment