Add start script to launch domod and sprinklerd

This commit is contained in:
jbnadal
2017-06-08 12:19:27 +02:00
parent 77364fcb97
commit 33298d0fad
10 changed files with 55 additions and 11 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/sh /etc/rc.common
#
# Start Domo Daemon
START=60
STOP=60
NAME=domod
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,24 @@
#!/bin/sh /etc/rc.common
#
# Start Sprinkler Daemon
START=62
STOP=62
NAME=sprinklerd
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/domod

View File

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

View File

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

View File

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