aboutsummaryrefslogtreecommitdiff
path: root/dns/knot/files/knotd.in
diff options
context:
space:
mode:
Diffstat (limited to 'dns/knot/files/knotd.in')
-rw-r--r--dns/knot/files/knotd.in12
1 files changed, 3 insertions, 9 deletions
diff --git a/dns/knot/files/knotd.in b/dns/knot/files/knotd.in
index 8605c706e97b..d6b87d2b258b 100644
--- a/dns/knot/files/knotd.in
+++ b/dns/knot/files/knotd.in
@@ -18,10 +18,8 @@
name=knot
rcvar=knot_enable
-extra_commands="reload compile"
-compile_cmd="${name}_compile"
+extra_commands="reload"
reload_cmd="${name}_reload"
-start_precmd="${name}_compile"
status_cmd="${name}_status"
stop_cmd="${name}_stop"
@@ -37,16 +35,12 @@ pidfile=/var/run/${name}.pid
command_args="-c ${knot_config} -w start"
required_files=${knot_config}
-knot_compile() {
- echo "Compiling zone(s)..."
- ${command} -c ${knot_config} compile
- }
knot_reload() {
echo "Reloading ${name}."
- ${command} -c ${knot_config} -a reload
+ ${command} -c ${knot_config} reload
}
knot_status() {
- ${command} -c ${knot_config} running
+ ${command} -c ${knot_config} status
}
knot_stop() {
echo "Stopping ${name}."