M7350/oe-core/meta-msm/recipes/ubus/files/ubusd
2024-09-09 08:52:07 +00:00

26 lines
442 B
Bash
Executable File

#! /bin/sh -e
test -x /usr/sbin/ubusd || exit 0
case "$1" in
start)
echo -n "Starting ubusd daemon: "
start-stop-daemon -S -b -a /usr/sbin/ubusd
echo "ubusd."
;;
stop)
echo -n "Stopping ubusd daemon: "
start-stop-daemon -K -n ubusd
echo "ubuds."
;;
restart|force-reload)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/ubusd {start|stop|restart|force-reload}"
exit 1
esac
exit 0