This repository has been archived on 2024-08-02. You can view files and clone it, but cannot push or open issues or pull requests.
orion/misc/openwrt/orion.init
William Petit 713ca17c62
Some checks reported errors
Pyxis/orion/feature%2Fjsonrpc-next Something is wrong with the build of this commit
Pyxis/orion/pipeline/head Something is wrong with the build of this commit
LaCanne/orion/pipeline/head Something is wrong with the build of this commit
WIP: JSONRPC server refactoring
2019-02-12 10:17:06 +01:00

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
}