Changeset View
Changeset View
Standalone View
Standalone View
contrib/init/bitcoind.conf
Show All 24 Lines | pre-start script | ||||
# since this is a commonly encountered case on install, just check and | # since this is a commonly encountered case on install, just check and | ||||
# warn here. | # warn here. | ||||
if ! grep -qs '^rpcpassword=' "$BITCOIND_CONFIGFILE" ; then | if ! grep -qs '^rpcpassword=' "$BITCOIND_CONFIGFILE" ; then | ||||
echo "ERROR: You must set a secure rpcpassword to run bitcoind." | echo "ERROR: You must set a secure rpcpassword to run bitcoind." | ||||
echo "The setting must appear in $BITCOIND_CONFIGFILE" | echo "The setting must appear in $BITCOIND_CONFIGFILE" | ||||
echo | echo | ||||
echo "This password is security critical to securing wallets " | echo "This password is security critical to securing wallets " | ||||
echo "and must not be the same as the rpcuser setting." | echo "and must not be the same as the rpcuser setting." | ||||
echo "You can generate a suitable random password using the following" | echo "You can generate a suitable random password using the following " | ||||
echo "command from the shell:" | echo "command from the shell:" | ||||
echo | echo | ||||
echo "bash -c 'tr -dc a-zA-Z0-9 < /dev/urandom | head -c32 && echo'" | echo "bash -c 'tr -dc a-zA-Z0-9 < /dev/urandom | head -c32 && echo'" | ||||
echo | echo | ||||
echo "It is also recommended that you also set alertnotify so you are " | echo "It is recommended that you also set alertnotify so you are " | ||||
echo "notified of problems:" | echo "notified of problems:" | ||||
echo | echo | ||||
echo "ie: alertnotify=echo %%s | mail -s \"Bitcoin Alert\"" \ | echo "ie: alertnotify=echo %%s | mail -s \"Bitcoin Alert\"" \ | ||||
"admin@foo.com" | "admin@foo.com" | ||||
echo | echo | ||||
exit 1 | exit 1 | ||||
fi | fi | ||||
Show All 19 Lines |