Add start scripts for uhttpd

This commit is contained in:
jbnadal
2018-04-24 17:44:05 +02:00
parent e1af334845
commit 692bf86f68
5 changed files with 10 additions and 7 deletions

View File

@@ -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
}

View File

@@ -0,0 +1 @@
../init.d/uhttpd

View File

@@ -1 +0,0 @@
../init.d/restd

View File

@@ -1 +0,0 @@
../init.d/restd

View File

@@ -0,0 +1 @@
../init.d/uhttpd