Add start script to launch domod and sprinklerd
This commit is contained in:
Executable
+24
@@ -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
|
||||
}
|
||||
Executable
+24
@@ -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
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
../init.d/domod
|
||||
@@ -0,0 +1 @@
|
||||
../init.d/sprinklerd
|
||||
+1
@@ -0,0 +1 @@
|
||||
../init.d/domod
|
||||
@@ -0,0 +1 @@
|
||||
../init.d/sprinklerd
|
||||
Reference in New Issue
Block a user