aboutsummaryrefslogtreecommitdiffstats
path: root/testing/radsecproxy/radsecproxy.initd
diff options
context:
space:
mode:
authorJosef Vybíhal <josef.vybihal@gmail.com>2020-08-21 12:29:51 +0200
committerLeo <thinkabit.ukim@gmail.com>2020-09-20 17:51:16 -0300
commit2c6abe985ea467477fb35863134914d08d78230c (patch)
tree852465af0cab2ef2fe60a7555ffa5fbdd2773c9d /testing/radsecproxy/radsecproxy.initd
parentb5da7842e3f9dd7d11e4ffc1f1e805dde02477fc (diff)
downloadaports-2c6abe985ea467477fb35863134914d08d78230c.tar.gz
aports-2c6abe985ea467477fb35863134914d08d78230c.tar.bz2
aports-2c6abe985ea467477fb35863134914d08d78230c.tar.xz
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/
Diffstat (limited to 'testing/radsecproxy/radsecproxy.initd')
-rw-r--r--testing/radsecproxy/radsecproxy.initd39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/radsecproxy/radsecproxy.initd b/testing/radsecproxy/radsecproxy.initd
new file mode 100644
index 0000000000..c967c4d5c1
--- /dev/null
+++ b/testing/radsecproxy/radsecproxy.initd
@@ -0,0 +1,39 @@
+#!/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 $?
+}