Fixed calling of __systemd_service type with correct arguments.

This commit is contained in:
Mark Verboom 2020-10-08 16:15:20 +02:00
parent 3fa74b454a
commit 5aeed14b1b

View file

@ -7,7 +7,9 @@ action="$(cat "$__object/parameter/action")"
case "$manager" in
systemd)
__systemd_service "$name" --action "$action"
test "$action" = "start" && action="running"
test "$action" = "stop" && action="stopped"
__systemd_service "$name" --state "$action"
;;
*)
# Unknown: handled by `service $NAME $action` in gencode-remote.