|
Lines 12-18
Link Here
|
| 12 |
# bitcoind_user (str) Set to "bitcoin" by default. |
12 |
# bitcoind_user (str) Set to "bitcoin" by default. |
| 13 |
# bitcoind_group (str) Set to "bitcoin" by default. |
13 |
# bitcoind_group (str) Set to "bitcoin" by default. |
| 14 |
# bitcoind_conf (str) Set to "%%PREFIX%%/etc/bitcoind.conf" by default. |
14 |
# bitcoind_conf (str) Set to "%%PREFIX%%/etc/bitcoind.conf" by default. |
| 15 |
# bitcoind_data (str) Set to "/var/lib/bitcoind" by default. |
15 |
# bitcoind_data (str) Set to "/var/lib/bitcoin" by default. |
| 16 |
# bitcoindlimits_enable (bool) Set to "NO" by default. |
16 |
# bitcoindlimits_enable (bool) Set to "NO" by default. |
| 17 |
# Set it to "YES" to enable bitcoindlimits |
17 |
# Set it to "YES" to enable bitcoindlimits |
| 18 |
# bitcoindlimits_args Set to "-e -U ${bitcoind_user}" by default |
18 |
# bitcoindlimits_args Set to "-e -U ${bitcoind_user}" by default |
|
Lines 32-38
Link Here
|
| 32 |
stop_cmd="bitcoind_stop" |
32 |
stop_cmd="bitcoind_stop" |
| 33 |
stop_postcmd="bitcoind_wait" |
33 |
stop_postcmd="bitcoind_wait" |
| 34 |
command="%%PREFIX%%/bin/bitcoind" |
34 |
command="%%PREFIX%%/bin/bitcoind" |
| 35 |
cli_command="%%PREFIX%%/bin/bitcoin-cli" |
|
|
| 36 |
daemon_command="/usr/sbin/daemon" |
35 |
daemon_command="/usr/sbin/daemon" |
| 37 |
#pidfile="/var/run/${name}.pid" |
36 |
#pidfile="/var/run/${name}.pid" |
| 38 |
extra_commands="configtest" |
37 |
extra_commands="configtest" |
|
Lines 45-51
Link Here
|
| 45 |
|
44 |
|
| 46 |
: ${bitcoind_user:="bitcoin"} |
45 |
: ${bitcoind_user:="bitcoin"} |
| 47 |
: ${bitcoind_group:="bitcoin"} |
46 |
: ${bitcoind_group:="bitcoin"} |
| 48 |
: ${bitcoind_data_dir:="/var/db/bitcoind"} |
47 |
: ${bitcoind_data_dir:="/var/db/bitcoin"} |
| 49 |
: ${bitcoind_config_file:="%%PREFIX%%/etc/bitcoin.conf"} |
48 |
: ${bitcoind_config_file:="%%PREFIX%%/etc/bitcoin.conf"} |
| 50 |
: ${bitcoindlimits_args:="-e -U ${bitcoind_user}"} |
49 |
: ${bitcoindlimits_args:="-e -U ${bitcoind_user}"} |
| 51 |
|
50 |
|
|
Lines 134-140
Link Here
|
| 134 |
echo "Bitcoind is not running" |
133 |
echo "Bitcoind is not running" |
| 135 |
return 1 |
134 |
return 1 |
| 136 |
else |
135 |
else |
| 137 |
${cli_command} -conf="${bitcoind_config_file}" -datadir="${bitcoind_data_dir}" stop |
136 |
kill ${pid} |
| 138 |
fi |
137 |
fi |
| 139 |
} |
138 |
} |
| 140 |
|
139 |
|