diff --git a/bsp/board/domo/ovl/etc/init.d/restd b/bsp/board/domo/ovl/etc/init.d/restd new file mode 100755 index 00000000..2f1cf7ac --- /dev/null +++ b/bsp/board/domo/ovl/etc/init.d/restd @@ -0,0 +1,24 @@ +#!/bin/sh /etc/rc.common +# +# Start rest Daemon + +START=65 +STOP=65 + +NAME=restd + +PROG=/usr/local/bin/$NAME +PIDFILE=/var/run/$NAME.pid + +USE_PROCD=1 + +# PROCD_DEBUG=1 + +start_service () { + + procd_open_instance + procd_set_param command "$PROG" + procd_set_param pidfile "$PIDFILE" + procd_set_param respawn + procd_close_instance +} diff --git a/bsp/board/domo/ovl/etc/rc.d/K65restd b/bsp/board/domo/ovl/etc/rc.d/K65restd new file mode 120000 index 00000000..348c4fec --- /dev/null +++ b/bsp/board/domo/ovl/etc/rc.d/K65restd @@ -0,0 +1 @@ +../init.d/restd \ No newline at end of file diff --git a/bsp/board/domo/ovl/etc/rc.d/S65restd b/bsp/board/domo/ovl/etc/rc.d/S65restd new file mode 120000 index 00000000..348c4fec --- /dev/null +++ b/bsp/board/domo/ovl/etc/rc.d/S65restd @@ -0,0 +1 @@ +../init.d/restd \ No newline at end of file