35 lines
370 B
Bash
Executable File
35 lines
370 B
Bash
Executable File
#!/bin/sh /etc/rc.common
|
|
|
|
START=99
|
|
STOP=20
|
|
|
|
#export command line for /usr/sbin/supervisord
|
|
export PROCLINE="/usr/sbin/datacenter"
|
|
|
|
start() {
|
|
/usr/sbin/supervisord start
|
|
return $?
|
|
}
|
|
|
|
restart() {
|
|
stop
|
|
sleep 1
|
|
start
|
|
return $?
|
|
}
|
|
|
|
shutdown() {
|
|
stop
|
|
return $?
|
|
}
|
|
|
|
stop() {
|
|
/usr/sbin/supervisord stop
|
|
return $?
|
|
}
|
|
|
|
status() {
|
|
/usr/sbin/supervisord status
|
|
return $?
|
|
}
|