mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
units: Fix SuccessAction that belongs to [Unit] section not [Service] section (#8478)
This commit is contained in:
parent
a6d09d946b
commit
94a1d03e27
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user