blob: f1c0bd4f05c297dd36c9e42b395ee816f794ad0a (
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
|
#!/usr/bin/openrc-run
description="A DNS server that chains plugins"
supervisor="supervise-daemon"
command="/usr/bin/coredns"
command_args="-conf /etc/Corefile"
command_background="yes"
pidfile="/run/coredns.pid"
error_log="/var/log/coredns.err"
depend() {
need net
after clock
provide dns
}
start_pre(){
if [ -f "/etc/Corefile" ]; then
return 0
else
eerror "No '/etc/Corefile' config file found. Please create one and retry"
return 1
fi
}
# vim: filetype=sh
|