View | Details | Raw Unified | Return to bug 277540 | Differences between
and this patch

Collapse All | Expand All

(-)b/dns/knot-resolver/files/krescachegc.in (-3 / +5 lines)
Lines 20-33 rcvar=krescachegc_enable Link Here
20
load_rc_config ${name}
20
load_rc_config ${name}
21
21
22
# set defaults
22
# set defaults
23
krescachegc_enable=${krescachegc_enable:-"NO"}
23
: ${krescachegc_enable:="NO"}
24
: ${krescachegc_svcj_options:="net_basic"}
24
: ${krescachegc_svcj_options:="net_basic"}
25
krescachegc_millis=${krescachegc_millis:-"1000"}
25
: ${krescachegc_millis:="1000"}
26
: ${krescachegc_cache:="%%RUNDIR%%"}
26
27
27
pidfile="%%RUNDIR%%/${name}.pid"
28
pidfile="%%RUNDIR%%/${name}.pid"
28
procname="%%PREFIX%%/sbin/kres-cache-gc"
29
procname="%%PREFIX%%/sbin/kres-cache-gc"
29
30
30
command=/usr/sbin/daemon
31
command=/usr/sbin/daemon
31
command_args="-c -f -S -r -P ${pidfile} -T ${name} -u %%USERS%% -- ${procname} -d ${krescachegc_millis}"
32
command_args="-c -f -S -r -P ${pidfile} -T ${name} -u %%USERS%% -- ${procname} -c ${krescachegc_cache} -d ${krescachegc_millis}"
33
32
34
33
run_rc_command "$1"
35
run_rc_command "$1"
(-)b/dns/knot-resolver/files/kresd.in (-13 / +14 lines)
Lines 21-32 rcvar=kresd_enable Link Here
21
load_rc_config ${name}
21
load_rc_config ${name}
22
22
23
# set defaults
23
# set defaults
24
kresd_enable=${kresd_enable:-"NO"}
24
: ${kresd_enable:="NO"}
25
: ${kresd_svcj_options:="net_basic"}
25
: ${kresd_svcj_options:="net_basic"}
26
kresd_config=${kresd_config:-"%%ETCDIR%%/${name}.conf"}
26
: ${kresd_config:="%%ETCDIR%%/${name}.conf"}
27
kresd_user="%%USERS%%"
27
: ${kresd_user:="%%USERS%%"}
28
kresd_group="%%GROUPS%%"
28
: ${kresd_group:="%%GROUPS%%"}
29
kresd_rundir="/var/run/${name}"
29
: ${kresd_rundir:="%%RUNDIR%%"}
30
30
31
pidfile="${kresd_rundir}/${name}.pid"
31
pidfile="${kresd_rundir}/${name}.pid"
32
procname="%%PREFIX%%/sbin/${name}"
32
procname="%%PREFIX%%/sbin/${name}"
Lines 34-39 required_files="${kresd_config}" Link Here
34
34
35
start_cmd="${name}_start"
35
start_cmd="${name}_start"
36
stop_cmd="${name}_stop"
36
stop_cmd="${name}_stop"
37
status_cmd="${name}_status"
37
38
38
command="/usr/sbin/daemon"
39
command="/usr/sbin/daemon"
39
command_args="-c -f -S -r -P ${pidfile} -T ${name} -- ${procname} -c ${kresd_config} -n -q ${kresd_rundir}"
40
command_args="-c -f -S -r -P ${pidfile} -T ${name} -- ${procname} -c ${kresd_config} -n -q ${kresd_rundir}"
Lines 64-76 kresd_stop() { Link Here
64
	}
65
	}
65
66
66
kresd_status() {
67
kresd_status() {
67
    if [ -e "${pidfile}" ]; then
68
	if [ -e "${pidfile}" ]; then
68
        echo "${name} is running on pid $(cat $pidfile)."
69
		echo "${name} is running on pid $(cat $pidfile)."
69
        return 1
70
		return 1
70
    else
71
	else
71
        echo "${name} is not running."
72
		echo "${name} is not running."
72
        return 0
73
		return 0
73
    fi
74
	fi
74
}
75
	}
75
76
76
run_rc_command "$1"
77
run_rc_command "$1"
(-)b/dns/knot-resolver/pkg-plist (-1 / +1 lines)
Lines 96-99 sbin/kres-cache-gc Link Here
96
sbin/kresc
96
sbin/kresc
97
sbin/kresd
97
sbin/kresd
98
@dir(%%USERS%%,%%GROUPS%%,0755) %%ETCDIR%%
98
@dir(%%USERS%%,%%GROUPS%%,0755) %%ETCDIR%%
99
@dir(%%USERS%%,%%GROUPS%%,0660) %%RUNDIR%%
99
@dir(%%USERS%%,%%GROUPS%%,0700) %%RUNDIR%%

Return to bug 277540