manifest 290 Bytes
Newer Older
fnux's avatar
fnux committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/bin/sh

manager="$(cat "$__object/explorer/service-manager")"

name=$__object_id
action="$(cat "$__object/parameter/action")"

case "$manager" in
	systemd)
		__systemd_service "$name" --action "$action"
	;;
	*)
		# Unknown: handled by `service $NAME $action` in gencode-remote.
	;;
esac