0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-12 03:28:07 +00:00
packages/net/openelp/files/openelp.init
Scott K Logan 00a9308112 openelp: Add new package
OpenELP is an open source EchoLink proxy for Linux and Windows. It aims
to be efficient and maintain a small footprint, while still implementing
all of the features present in the official EchoLink proxy.

Signed-off-by: Scott K Logan <logans@cottsay.net>
2023-06-20 02:40:59 -07:00

31 lines
519 B
Bash
Executable File

#!/bin/sh /etc/rc.common
START=90
STOP=10
USE_PROCD=1
NAME="openelp"
PROG="/usr/bin/openelpd"
CONFFILE="/etc/ELProxy.conf"
extra_command "close" "Close the proxy to new connections"
extra_command "version" "Show version information"
start_service() {
procd_open_instance
procd_set_param command "$PROG"
procd_append_param command -F -q -S "$CONFFILE"
procd_set_param stderr 1
procd_set_param file "$CONFFILE"
procd_close_instance
}
close() {
procd_send_signal openelp '*' USR1
}
version() {
"$PROG" -V
}