blob: c967c4d5c138feda548752e522ba8ef3ebf49a53 (
plain) (
blame)
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
|
#!/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 $?
}
|