Add start scripts for uhttpd
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
#
|
||||
# Start rest Daemon
|
||||
# Start uhttpd Daemon
|
||||
|
||||
START=65
|
||||
STOP=65
|
||||
START=73
|
||||
STOP=22
|
||||
|
||||
NAME=restd
|
||||
NAME=uhttpd
|
||||
|
||||
PROG=/usr/local/bin/$NAME
|
||||
PIDFILE=/var/run/$NAME.pid
|
||||
PORT=8080
|
||||
|
||||
USE_PROCD=1
|
||||
|
||||
@@ -17,8 +18,10 @@ USE_PROCD=1
|
||||
start_service () {
|
||||
|
||||
procd_open_instance
|
||||
procd_set_param command "$PROG"
|
||||
procd_set_param command "$PROG" -p $PORT -f -h /usr/local/share/restd/
|
||||
procd_set_param pidfile "$PIDFILE"
|
||||
procd_set_param respawn
|
||||
procd_set_param stdout 1 # forward stdout of the command to logd
|
||||
procd_set_param stderr 1
|
||||
procd_close_instance
|
||||
}
|
||||
1
bsp/board/domo/ovl/etc/rc.d/K22uhttpd
Symbolic link
1
bsp/board/domo/ovl/etc/rc.d/K22uhttpd
Symbolic link
@@ -0,0 +1 @@
|
||||
../init.d/uhttpd
|
||||
@@ -1 +0,0 @@
|
||||
../init.d/restd
|
||||
@@ -1 +0,0 @@
|
||||
../init.d/restd
|
||||
1
bsp/board/domo/ovl/etc/rc.d/S73uhttpd
Symbolic link
1
bsp/board/domo/ovl/etc/rc.d/S73uhttpd
Symbolic link
@@ -0,0 +1 @@
|
||||
../init.d/uhttpd
|
||||
Reference in New Issue
Block a user