mirror of
https://github.com/systemd/systemd.git
synced 2024-11-27 20:23:36 +08:00
units: specify timeouts for more oneshot services
Even trivial service occasionally get stuck, for example when there's a problem with the journal. There's nothing more annoying that looking at the cylon eye for a job with an infinite timeout. Use standard 90s for jobs that do some work, and 30s for those which should be almost instantenous.
This commit is contained in:
parent
ea35a38613
commit
b53374f99b
@ -24,3 +24,4 @@ ConditionDirectoryNotEmpty=|/run/binfmt.d
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=@rootlibexecdir@/systemd-binfmt
|
||||
TimeoutSec=90s
|
||||
|
@ -21,3 +21,4 @@ ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=@rootbindir@/systemd-hwdb update
|
||||
TimeoutSec=90s
|
||||
|
@ -19,3 +19,4 @@ ConditionPathIsMountPoint=/etc/machine-id
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=@rootlibexecdir@/systemd-machine-id-commit
|
||||
TimeoutSec=30s
|
||||
|
@ -24,3 +24,4 @@ ConditionKernelCommandLine=|rd.modules-load
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=@rootlibexecdir@/systemd-modules-load
|
||||
TimeoutSec=90s
|
||||
|
@ -19,3 +19,4 @@ Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=@rootlibexecdir@/systemd-random-seed load
|
||||
ExecStop=@rootlibexecdir@/systemd-random-seed save
|
||||
TimeoutSec=30s
|
||||
|
@ -20,3 +20,4 @@ Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=@rootlibexecdir@/systemd-rfkill load %I
|
||||
ExecStop=@rootlibexecdir@/systemd-rfkill save %I
|
||||
TimeoutSec=30s
|
||||
|
@ -18,3 +18,4 @@ ConditionPathIsReadWrite=/proc/sys/
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=@rootlibexecdir@/systemd-sysctl
|
||||
TimeoutSec=90s
|
||||
|
@ -18,3 +18,4 @@ ConditionNeedsUpdate=/etc
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=@rootbindir@/systemd-sysusers
|
||||
TimeoutSec=90s
|
||||
|
Loading…
Reference in New Issue
Block a user