projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6d09d9
)
units: Fix SuccessAction that belongs to [Unit] section not [Service] section (#8478)
author
Karol Augustin
<karol@augustin.pl>
Sun, 18 Mar 2018 10:40:07 +0000
(10:40 +0000)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Sun, 18 Mar 2018 10:40:07 +0000
(19:40 +0900)
units/system-update-cleanup.service.in
patch
|
blob
|
history
diff --git
a/units/system-update-cleanup.service.in
b/units/system-update-cleanup.service.in
index
84d16f6
..
58baab3
100644
(file)
--- a/
units/system-update-cleanup.service.in
+++ b/
units/system-update-cleanup.service.in
@@
-14,6
+14,7
@@
After=system-update.target
DefaultDependencies=no
Conflicts=shutdown.target
Before=shutdown.target
+SuccessAction=reboot
# system-update-generator uses laccess("/system-update"), while a plain
# ConditionPathExists=/system-update uses access("/system-update"), so
@@
-32,4
+33,3
@@
ConditionPathIsSymbolicLink=|/system-update
[Service]
Type=oneshot
ExecStart=/bin/rm -fv /system-update
-SuccessAction=reboot