Lines 13-37
Link Here
|
13 |
# Default is "/usr/local/etc/caldavd.conf". |
13 |
# Default is "/usr/local/etc/caldavd.conf". |
14 |
# caldavd_flags (string): Flags to pass to caldavd. |
14 |
# caldavd_flags (string): Flags to pass to caldavd. |
15 |
# Default is empty. |
15 |
# Default is empty. |
|
|
16 |
# caldavd_pidfile (string): Set path to the pid file. |
17 |
# Default is /var/db/caldavd/caldavd.pid |
16 |
# |
18 |
# |
17 |
|
19 |
|
18 |
. /etc/rc.subr |
20 |
. /etc/rc.subr |
19 |
|
21 |
|
20 |
: ${caldavd_enable="NO"} |
|
|
21 |
: ${caldavd_conf="%%PREFIX%%/etc/caldavd/caldavd.plist"} |
22 |
|
23 |
|
24 |
name="caldavd" |
22 |
name="caldavd" |
|
|
23 |
rcvar=caldavd_enable |
25 |
|
24 |
|
26 |
command="%%PREFIX%%/bin/caldavd" |
25 |
load_rc_config $name |
27 |
command_args=" -f ${caldavd_conf} -R kqueue" |
26 |
: ${caldavd_enable:=no} |
|
|
27 |
: ${caldavd_conf="%%PREFIX%%/etc/caldavd/caldavd.plist"} |
28 |
: ${caldavd_pidfile="/var/run/${name}.pid"} |
28 |
|
29 |
|
29 |
pidfile="/var/db/${name}/${name}.pid" |
30 |
pidfile="/var/db/${name}/${name}.pid" |
30 |
required_files="${caldavd_conf}" |
31 |
required_files="${caldavd_conf}" |
31 |
|
32 |
|
32 |
procname="%%PYTHON_CMD%%" |
33 |
procname="%%PYTHON_CMD%%" |
33 |
PATH=${PATH}:%%PREFIX%%/bin |
34 |
PATH=${PATH}:%%PREFIX%%/bin |
34 |
|
35 |
|
|
|
36 |
command="%%PREFIX%%/bin/caldavd" |
37 |
command_args=" -f ${caldavd_conf} -R kqueue" |
38 |
|
35 |
start_precmd="install -d -o caldavd /var/db/caldavd/Data/Documents /var/db/caldavd/Documents && install -d /var/log/caldavd" |
39 |
start_precmd="install -d -o caldavd /var/db/caldavd/Data/Documents /var/db/caldavd/Documents && install -d /var/log/caldavd" |
36 |
|
40 |
|
37 |
run_rc_command "$1" |
41 |
run_rc_command "$1" |