Lines 7-13
Link Here
|
7 |
# Add the following line to /etc/rc.conf to enable daedalus: |
7 |
# Add the following line to /etc/rc.conf to enable daedalus: |
8 |
# daedalus_enable (bool): Set to "NO" by default. |
8 |
# daedalus_enable (bool): Set to "NO" by default. |
9 |
# Set it to "YES" to enable daedalus |
9 |
# Set it to "YES" to enable daedalus |
10 |
# daedalus_flags (str): Set to "-C -c %%PREFIX%%/etc/daedalus.conf" by default. |
10 |
# daedalus_flags (str): Set to "-c %%PREFIX%%/etc/daedalus/daedalus.xml -t %%PREFIX%%/etc/daedalus/templates.xml" by default. |
11 |
# Extra flags passed to start command |
11 |
# Extra flags passed to start command |
12 |
# |
12 |
# |
13 |
. %%RC_SUBR%% |
13 |
. %%RC_SUBR%% |
Lines 18-27
Link Here
|
18 |
command="%%PREFIX%%/bin/daedalus.rb" |
18 |
command="%%PREFIX%%/bin/daedalus.rb" |
19 |
pidfile="/var/run/daedalus.pid" |
19 |
pidfile="/var/run/daedalus.pid" |
20 |
command_interpreter="%%RUBY_WITHOUT_SUFFIX%%" |
20 |
command_interpreter="%%RUBY_WITHOUT_SUFFIX%%" |
21 |
required_files=%%PREFIX%%/etc/daedalus.conf |
21 |
required_files=%%PREFIX%%/etc/daedalus/daedalus.xml |
22 |
|
22 |
|
23 |
[ -z "$daedalus_enable" ] && daedalus_enable="NO" |
23 |
[ -z "$daedalus_enable" ] && daedalus_enable="NO" |
24 |
[ -z "$daedalus_flags" ] && daedalus_flags="-C -c %%PREFIX%%/etc/daedalus.conf" |
24 |
[ -z "$daedalus_flags" ] && daedalus_flags="-c %%PREFIX%%/etc/daedalus/daedalus.xml -t %%PREFIX%%/etc/daedalus/templates.xml" |
25 |
|
25 |
|
26 |
load_rc_config $name |
26 |
load_rc_config $name |
27 |
|
27 |
|