Changeset View
Changeset View
Standalone View
Standalone View
contrib/init/bitcoind.conf
Show All 29 Lines | if ! grep -qs '^rpcpassword=' "$BITCOIND_CONFIGFILE" ; then | ||||
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 "notified of problems:" | |||||
echo | |||||
echo "ie: alertnotify=echo %%s | mail -s \"Bitcoin Alert\"" \ | |||||
"admin@foo.com" | |||||
echo | |||||
exit 1 | exit 1 | ||||
fi | fi | ||||
mkdir -p "$BITCOIND_PIDDIR" | mkdir -p "$BITCOIND_PIDDIR" | ||||
chmod 0755 "$BITCOIND_PIDDIR" | chmod 0755 "$BITCOIND_PIDDIR" | ||||
chown $BITCOIND_USER:$BITCOIND_GROUP "$BITCOIND_PIDDIR" | chown $BITCOIND_USER:$BITCOIND_GROUP "$BITCOIND_PIDDIR" | ||||
chown $BITCOIND_USER:$BITCOIND_GROUP "$BITCOIND_CONFIGFILE" | chown $BITCOIND_USER:$BITCOIND_GROUP "$BITCOIND_CONFIGFILE" | ||||
chmod 0660 "$BITCOIND_CONFIGFILE" | chmod 0660 "$BITCOIND_CONFIGFILE" | ||||
Show All 14 Lines |