24 lines
311 B
Bash
24 lines
311 B
Bash
#!/bin/sh /etc/rc.common
|
|
|
|
PID_FILE=/var/run/orion.pid
|
|
COMMAND="/opt/orion/server"
|
|
WORKDIR=/opt/orion
|
|
|
|
start() {
|
|
cd "$WORKDIR"
|
|
start-stop-daemon -S \
|
|
-b -m \
|
|
-p "$PID_FILE" \
|
|
-x "$COMMAND"
|
|
}
|
|
|
|
stop() {
|
|
start-stop-daemon -K \
|
|
-p "$PID_FILE" \
|
|
-x "$COMMAND"
|
|
}
|
|
|
|
restart() {
|
|
stop
|
|
start
|
|
} |