units: use SuccessAction=reboot where appropriate (#8335)
authorLennart Poettering <lennart@poettering.net>
Fri, 2 Mar 2018 14:41:36 +0000 (15:41 +0100)
committerGitHub <noreply@github.com>
Fri, 2 Mar 2018 14:41:36 +0000 (15:41 +0100)
We should really use our own native concepts for rebooting.

units/system-update-cleanup.service.in

index 51399f1..84d16f6 100644 (file)
@@ -32,4 +32,4 @@ ConditionPathIsSymbolicLink=|/system-update
 [Service]
 Type=oneshot
 ExecStart=/bin/rm -fv /system-update
-ExecStart=@SYSTEMCTL@ reboot
+SuccessAction=reboot