View | Details | Raw Unified | Return to bug 182792
Collapse All | Expand All

(-)knotd (-6 / +6 lines)
Lines 28-50 Link Here
28
: ${knot_enable:="NO"}
28
: ${knot_enable:="NO"}
29
: ${knot_config="/usr/local/etc/knot/knot.conf"}
29
: ${knot_config="/usr/local/etc/knot/knot.conf"}
30
30
31
command=/usr/local/sbin/${name}c
31
knotc=/usr/local/sbin/${name}c
32
procname=/usr/local/sbin/${name}d
32
command=/usr/local/sbin/${name}d
33
pidfile=/var/run/${name}.pid
33
pidfile=/var/run/${name}.pid
34
34
35
command_args="-c ${knot_config} -w start"
35
command_args="-c ${knot_config} -d"
36
required_files=${knot_config}
36
required_files=${knot_config}
37
37
38
knot_reload() {
38
knot_reload() {
39
	echo "Reloading ${name}."
39
	echo "Reloading ${name}."
40
	${command} -c ${knot_config} reload
40
	${knotc} -c ${knot_config} reload
41
	}
41
	}
42
knot_status() {
42
knot_status() {
43
	${command} -c ${knot_config} status
43
	${knotc} -c ${knot_config} status
44
	}
44
	}
45
knot_stop() {
45
knot_stop() {
46
	echo "Stopping ${name}."
46
	echo "Stopping ${name}."
47
	${command} -c ${knot_config} stop
47
	${knotc} -c ${knot_config} stop
48
	}
48
	}
49
49
50
run_rc_command "$1"
50
run_rc_command "$1"

Return to bug 182792