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:
Zbigniew Jędrzejewski-Szmek
2015-04-28 08:52:17 -04:00
parent ea35a38613
commit b53374f99b
8 changed files with 8 additions and 0 deletions
+1
View File
@@ -24,3 +24,4 @@ ConditionDirectoryNotEmpty=|/run/binfmt.d
Type=oneshot
RemainAfterExit=yes
ExecStart=@rootlibexecdir@/systemd-binfmt
TimeoutSec=90s
+1
View File
@@ -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
+1
View File
@@ -24,3 +24,4 @@ ConditionKernelCommandLine=|rd.modules-load
Type=oneshot
RemainAfterExit=yes
ExecStart=@rootlibexecdir@/systemd-modules-load
TimeoutSec=90s
+1
View File
@@ -19,3 +19,4 @@ Type=oneshot
RemainAfterExit=yes
ExecStart=@rootlibexecdir@/systemd-random-seed load
ExecStop=@rootlibexecdir@/systemd-random-seed save
TimeoutSec=30s
+1
View File
@@ -20,3 +20,4 @@ Type=oneshot
RemainAfterExit=yes
ExecStart=@rootlibexecdir@/systemd-rfkill load %I
ExecStop=@rootlibexecdir@/systemd-rfkill save %I
TimeoutSec=30s
+1
View File
@@ -18,3 +18,4 @@ ConditionPathIsReadWrite=/proc/sys/
Type=oneshot
RemainAfterExit=yes
ExecStart=@rootlibexecdir@/systemd-sysctl
TimeoutSec=90s
+1
View File
@@ -18,3 +18,4 @@ ConditionNeedsUpdate=/etc
Type=oneshot
RemainAfterExit=yes
ExecStart=@rootbindir@/systemd-sysusers
TimeoutSec=90s