18 lines
317 B
Plaintext
18 lines
317 B
Plaintext
#!/sbin/openrc-run
|
|
supervisor=supervise-daemon
|
|
name=rflink
|
|
. /etc/rflink.conf
|
|
command="/usr/sbin/rflink"
|
|
command_args="$TCP_port $PIN_TX $PIN_RX $log_level"
|
|
|
|
depend() {
|
|
use logger
|
|
need net
|
|
}
|
|
|
|
start_pre() {
|
|
if [ ! -f "/etc/rflink.conf" ]; then
|
|
echo "Config file not found"
|
|
exit 130
|
|
fi
|
|
} |