]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: specify timeouts for more oneshot services
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 17 Apr 2015 01:41:18 +0000 (21:41 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 28 Apr 2015 12:52:17 +0000 (08:52 -0400)
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.

units/systemd-binfmt.service.in
units/systemd-hwdb-update.service.in
units/systemd-machine-id-commit.service.in
units/systemd-modules-load.service.in
units/systemd-random-seed.service.in
units/systemd-rfkill@.service.in
units/systemd-sysctl.service.in
units/systemd-sysusers.service.in

index 34a5d5237b1d8a5eb0ed99264b3703183fbb9066..d53073ee616be9686810226e3b111423b1b9de36 100644 (file)
@@ -24,3 +24,4 @@ ConditionDirectoryNotEmpty=|/run/binfmt.d
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=@rootlibexecdir@/systemd-binfmt
+TimeoutSec=90s
index 791528e2b224551618c086adcd9c189790c2067e..7135cff3d9b413281e83d0bed0bf4bb39fa127f1 100644 (file)
@@ -21,3 +21,4 @@ ConditionDirectoryNotEmpty=|/etc/udev/hwdb.d/
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=@rootbindir@/systemd-hwdb update
+TimeoutSec=90s
index dd765b6608a3d99d0aba2f4673f1bea322e8fbf0..cccbf7b626f0618664b7174775d9924f5a2470e2 100644 (file)
@@ -19,3 +19,4 @@ ConditionPathIsMountPoint=/etc/machine-id
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=@rootlibexecdir@/systemd-machine-id-commit
+TimeoutSec=30s
index 040a0febe82d1272e8c39c8871eec35a1e5bbd6a..9de6d313491eab7451c236e35b20c0bdfe61071c 100644 (file)
@@ -24,3 +24,4 @@ ConditionKernelCommandLine=|rd.modules-load
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=@rootlibexecdir@/systemd-modules-load
+TimeoutSec=90s
index b55844b36fdf4a2f9afc9c4c02ea09c768daeff4..115233268ddd7329dcc7b4a79e40c6a7d26c9ce6 100644 (file)
@@ -19,3 +19,4 @@ Type=oneshot
 RemainAfterExit=yes
 ExecStart=@rootlibexecdir@/systemd-random-seed load
 ExecStop=@rootlibexecdir@/systemd-random-seed save
+TimeoutSec=30s
index b48efe5d99539bf0ad00840dd3c8ef1f6ee70290..e53bf5fbba9730bc4e00dab4c1742aeda0daefb0 100644 (file)
@@ -20,3 +20,4 @@ Type=oneshot
 RemainAfterExit=yes
 ExecStart=@rootlibexecdir@/systemd-rfkill load %I
 ExecStop=@rootlibexecdir@/systemd-rfkill save %I
+TimeoutSec=30s
index fa72085f9e98b1dd25e37dae1c56cd6bf2ba43af..d784c6426dbf3d67c7a04cd6cf63d2262758dbf8 100644 (file)
@@ -18,3 +18,4 @@ ConditionPathIsReadWrite=/proc/sys/
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=@rootlibexecdir@/systemd-sysctl
+TimeoutSec=90s
index ffd6d7747b5a1b19de099bd39b899824c25f31c5..4d8309ab6b0b45e1dce15bc7d770cc06840ee229 100644 (file)
@@ -18,3 +18,4 @@ ConditionNeedsUpdate=/etc
 Type=oneshot
 RemainAfterExit=yes
 ExecStart=@rootbindir@/systemd-sysusers
+TimeoutSec=90s