Lines 33-38
Link Here
|
33 |
|
33 |
|
34 |
command="%%PREFIX%%/sbin/${name}" |
34 |
command="%%PREFIX%%/sbin/${name}" |
35 |
start_precmd="start_precmd" |
35 |
start_precmd="start_precmd" |
|
|
36 |
start_cmd="start_cmd" |
36 |
stop_postcmd="stop_postcmd" |
37 |
stop_postcmd="stop_postcmd" |
37 |
restart_cmd="restart_cmd" |
38 |
restart_cmd="restart_cmd" |
38 |
extra_commands="reload" |
39 |
extra_commands="reload" |
Lines 45-50
Link Here
|
45 |
/usr/bin/install -o root -g wheel -m 0755 -d ${base_dir} |
46 |
/usr/bin/install -o root -g wheel -m 0755 -d ${base_dir} |
46 |
} |
47 |
} |
47 |
|
48 |
|
|
|
49 |
start_cmd() |
50 |
{ |
51 |
/usr/sbin/daemon -f ${command} -F ${command_args} |
52 |
} |
53 |
|
48 |
stop_postcmd() |
54 |
stop_postcmd() |
49 |
{ # Cleanup runtime directories |
55 |
{ # Cleanup runtime directories |
50 |
rm -rf ${base_dir} 2>/dev/null |
56 |
rm -rf ${base_dir} 2>/dev/null |
Lines 68-74
Link Here
|
68 |
echo "==Error==" |
74 |
echo "==Error==" |
69 |
echo "Config file ${config} does not exist. If this is" |
75 |
echo "Config file ${config} does not exist. If this is" |
70 |
echo "a new installation, please create the config files as outlined in" |
76 |
echo "a new installation, please create the config files as outlined in" |
71 |
echo " # pkg info -D dovecot2" |
77 |
echo " # pkg info -D dovecot" |
72 |
fi |
78 |
fi |
73 |
run_rc_command "$1" |
79 |
run_rc_command "$1" |
74 |
done |
80 |
done |