Add start script for restd.

This commit is contained in:
jbnadal
2017-06-07 18:18:19 +02:00
parent ce024c4282
commit e57768952e
3 changed files with 26 additions and 0 deletions

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

View File

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

View File

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