diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-30 23:54:21 -0500 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-02-01 12:44:03 -0500 |
commit | 0775b9b61120f8be99cd45a7df907b828188cb47 (patch) | |
tree | e00e49d60119061b84ebff95a86f215e4ec75f9a /units/systemd-backlight@.service.in | |
parent | a3bd89ea99214db7ca2ad6ae59181d5119a54f09 (diff) |
units: set TimeoutSec on some oneshot services
Services which are not crucial to system bootup, and have Type=oneshot
can effectively "hang" the system if they fail to complete for whatever
reason. To allow the boot to continue, kill them after a timeout.
In case of systemd-journal-flush the flush will continue in the background,
and in the other two cases the job will be aborted, but this should not
result in any permanent problem.
Diffstat (limited to 'units/systemd-backlight@.service.in')
-rw-r--r-- | units/systemd-backlight@.service.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/units/systemd-backlight@.service.in b/units/systemd-backlight@.service.in index ecf3de48d7..19d640bfb0 100644 --- a/units/systemd-backlight@.service.in +++ b/units/systemd-backlight@.service.in @@ -19,3 +19,4 @@ Type=oneshot RemainAfterExit=yes ExecStart=@rootlibexecdir@/systemd-backlight load %i ExecStop=@rootlibexecdir@/systemd-backlight save %i +TimeoutSec=2min |