mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +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
|
DefaultDependencies=no
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
Before=shutdown.target
|
Before=shutdown.target
|
||||||
|
SuccessAction=reboot
|
||||||
|
|
||||||
# system-update-generator uses laccess("/system-update"), while a plain
|
# system-update-generator uses laccess("/system-update"), while a plain
|
||||||
# ConditionPathExists=/system-update uses access("/system-update"), so
|
# ConditionPathExists=/system-update uses access("/system-update"), so
|
||||||
@ -32,4 +33,3 @@ ConditionPathIsSymbolicLink=|/system-update
|
|||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart=/bin/rm -fv /system-update
|
ExecStart=/bin/rm -fv /system-update
|
||||||
SuccessAction=reboot
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user