Merge branch '__service-fix' into 'master'

Fixed calling of __systemd_service type with correct arguments.

See merge request ungleich-public/cdist!941
This commit is contained in:
poljakowski 2020-10-09 06:47:54 +02:00
commit 68a280d51a

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.