blob: 78a72e0fe00bf472b8f25edef89e35f1802133b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#!/sbin/openrc-run
name=radsecproxy
description="Generic RADIUS proxy"
description_checkconfig="Check configuration"
description_reopen="Reopen log files and reload TLS certificate CRLs"
extra_commands="checkconfig"
extra_started_commands="reopen"
: ${command_user:="radsecproxy:radsecproxy"}
: ${cfgfile:="/etc/radsecproxy.conf"}
command="/usr/sbin/radsecproxy"
command_args="-c $cfgfile -f ${command_args:-}"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
required_files="$cfgfile"
depend() {
need net
use dns logger netmount
}
start_pre() {
$command $command_args -p
}
checkconfig() {
ebegin "Checking $name configuration"
start_pre
eend $?
}
reopen() {
ebegin "Reopening $name log files and CRLs"
if [ "$supervisor" ]; then
$supervisor "$RC_SVCNAME" --signal HUP
else
start-stop-daemon --signal HUP --pidfile "$pidfile"
fi
eend $?
}
|