Add start script for restd.
This commit is contained in:
24
bsp/board/domo/ovl/etc/init.d/restd
Executable file
24
bsp/board/domo/ovl/etc/init.d/restd
Executable file
@@ -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
|
||||
}
|
||||
1
bsp/board/domo/ovl/etc/rc.d/K65restd
Symbolic link
1
bsp/board/domo/ovl/etc/rc.d/K65restd
Symbolic link
@@ -0,0 +1 @@
|
||||
../init.d/restd
|
||||
1
bsp/board/domo/ovl/etc/rc.d/S65restd
Symbolic link
1
bsp/board/domo/ovl/etc/rc.d/S65restd
Symbolic link
@@ -0,0 +1 @@
|
||||
../init.d/restd
|
||||
Reference in New Issue
Block a user