From 1775872679f1ace1771a14294306aa6782b5b263 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 6 Jun 2023 09:29:51 +0200 Subject: [PATCH] units: change TimeoutSec=0 to TimeoutSec=infinity Follow-up for #27936 Let's also update a bunch of static unit files, matching what we just did for the generators. --- test/units/autorelabel.service | 2 +- units/rc-local.service.in | 2 +- units/systemd-fsck-root.service.in | 2 +- units/systemd-fsck@.service.in | 2 +- units/systemd-growfs-root.service.in | 2 +- units/systemd-growfs@.service.in | 2 +- units/systemd-quotacheck.service.in | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/units/autorelabel.service b/test/units/autorelabel.service index aad7d111d5..dd0df8161b 100644 --- a/test/units/autorelabel.service +++ b/test/units/autorelabel.service @@ -12,7 +12,7 @@ ConditionPathExists=|/.autorelabel [Service] ExecStart=sh -xec 'echo 0 >/sys/fs/selinux/enforce; fixfiles -f -F relabel; rm /.autorelabel; systemctl --force reboot' Type=oneshot -TimeoutSec=0 +TimeoutSec=infinity RemainAfterExit=yes StandardOutput=journal+console diff --git a/units/rc-local.service.in b/units/rc-local.service.in index 55e83dfe00..6fb0838cdb 100644 --- a/units/rc-local.service.in +++ b/units/rc-local.service.in @@ -18,6 +18,6 @@ After=network.target [Service] Type=forking ExecStart={{RC_LOCAL_PATH}} start -TimeoutSec=0 +TimeoutSec=infinity RemainAfterExit=yes GuessMainPID=no diff --git a/units/systemd-fsck-root.service.in b/units/systemd-fsck-root.service.in index 8378df84c7..8cfbe7ce98 100644 --- a/units/systemd-fsck-root.service.in +++ b/units/systemd-fsck-root.service.in @@ -21,4 +21,4 @@ OnFailureJobMode=replace-irreversibly Type=oneshot RemainAfterExit=yes ExecStart={{ROOTLIBEXECDIR}}/systemd-fsck -TimeoutSec=0 +TimeoutSec=infinity diff --git a/units/systemd-fsck@.service.in b/units/systemd-fsck@.service.in index 06b91aea39..d773229812 100644 --- a/units/systemd-fsck@.service.in +++ b/units/systemd-fsck@.service.in @@ -20,4 +20,4 @@ Before=systemd-quotacheck.service shutdown.target Type=oneshot RemainAfterExit=yes ExecStart={{ROOTLIBEXECDIR}}/systemd-fsck %f -TimeoutSec=0 +TimeoutSec=infinity diff --git a/units/systemd-growfs-root.service.in b/units/systemd-growfs-root.service.in index 61b825672d..0468774cb0 100644 --- a/units/systemd-growfs-root.service.in +++ b/units/systemd-growfs-root.service.in @@ -20,4 +20,4 @@ Before=shutdown.target Type=oneshot RemainAfterExit=yes ExecStart={{ROOTLIBEXECDIR}}/systemd-growfs / -TimeoutSec=0 +TimeoutSec=infinity diff --git a/units/systemd-growfs@.service.in b/units/systemd-growfs@.service.in index d7c90e96fc..90fb0a8661 100644 --- a/units/systemd-growfs@.service.in +++ b/units/systemd-growfs@.service.in @@ -21,4 +21,4 @@ Before=shutdown.target Type=oneshot RemainAfterExit=yes ExecStart={{ROOTLIBEXECDIR}}/systemd-growfs %f -TimeoutSec=0 +TimeoutSec=infinity diff --git a/units/systemd-quotacheck.service.in b/units/systemd-quotacheck.service.in index 05c14ff8b6..60b56496fa 100644 --- a/units/systemd-quotacheck.service.in +++ b/units/systemd-quotacheck.service.in @@ -22,4 +22,4 @@ Before=shutdown.target Type=oneshot RemainAfterExit=yes ExecStart={{ROOTLIBEXECDIR}}/systemd-quotacheck -TimeoutSec=0 +TimeoutSec=infinity