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

This commit is contained in:
Karol Augustin 2018-03-18 10:40:07 +00:00 committed by Yu Watanabe
parent a6d09d946b
commit 94a1d03e27
1 changed files with 1 additions and 1 deletions

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