units: Fix SuccessAction that belongs to [Unit] section not [Service] section (#8478)

This commit is contained in:
Karol Augustin
2018-03-18 19:40:07 +09:00
committed by Yu Watanabe
parent a6d09d946b
commit 94a1d03e27
+1 -1
View File
@@ -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