1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-19 09:15:30 +03:00
aports/testing/radsecproxy/radsecproxy.initd
Josef Vybíhal 2c6abe985e testing/radsecproxy: new aport
https://github.com/radsecproxy/radsecproxy
radsecproxy is a generic RADIUS proxy that supports both UDP and TLS (RadSec) RADIUS transports.
testing/
2020-09-20 17:51:16 -03:00

39 lines
636 B
Text

#!/sbin/openrc-run
supervisor=supervise-daemon
description="generic RADIUS proxy"
description_checkconfig="Check configuration"
description_reload="Reload configuration"
description_reopen="Reopen log files"
command_args_foreground="-f"
required_files="$cfgfile"
depend() {
need net
use dns logger netmount
}
start_pre() {
$command $command_args -p
}
checkconfig() {
ebegin "Checking $name configuration"
start_pre
eend $?
}
reload() {
ebegin "Reloading $name configuration"
start_pre && supervise-daemon --signal HUP
eend $?
}
reopen() {
ebegin "Reopening $name log files"
supervise-daemon --signal USR1
eend $?
}