mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-20 10:35:50 +00:00
Improvements to initscript and default configuration.
* Added absolute paths to the [node_db] and [debug_logfile] stanzas in the config file. * Changed some tabs into spaces for consistency. * Added directory tree sanity checking to initscript. Signed-off-by: The Doctor <drwho@virtadpt.net>
This commit is contained in:
@@ -785,12 +785,12 @@ medium
|
|||||||
# Note that HyperLevelDB is unavailable on Windows platforms
|
# Note that HyperLevelDB is unavailable on Windows platforms
|
||||||
[node_db]
|
[node_db]
|
||||||
type=HyperLevelDB
|
type=HyperLevelDB
|
||||||
path=db/hyperldb
|
path=/etc/ripple/db/hyperldb
|
||||||
|
|
||||||
# This needs to be an absolute directory reference, not a relative one.
|
# This needs to be an absolute directory reference, not a relative one.
|
||||||
# Modify this value as required.
|
# Modify this value as required.
|
||||||
[debug_logfile]
|
[debug_logfile]
|
||||||
log/debug.log
|
/var/log/rippled/debug.log
|
||||||
|
|
||||||
[sntp_servers]
|
[sntp_servers]
|
||||||
time.windows.com
|
time.windows.com
|
||||||
|
|||||||
@@ -19,9 +19,22 @@ PIDFILE=/var/run/$NAME.pid
|
|||||||
DAEMON=/usr/local/sbin/rippled
|
DAEMON=/usr/local/sbin/rippled
|
||||||
DAEMON_OPTS="--conf /etc/ripple/rippled.cfg"
|
DAEMON_OPTS="--conf /etc/ripple/rippled.cfg"
|
||||||
NET_OPTS="--net $DAEMON_OPTS"
|
NET_OPTS="--net $DAEMON_OPTS"
|
||||||
|
LOGDIR="/var/log/rippled"
|
||||||
|
DBDIR="/var/db/rippled/db/hyperldb"
|
||||||
|
|
||||||
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
|
export PATH="${PATH:+$PATH:}/usr/sbin:/sbin"
|
||||||
|
|
||||||
|
# I wish it didn't come down to this, but this is the easiest way to ensure
|
||||||
|
# sanity of an install.
|
||||||
|
if [ ! -d $LOGDIR ]; then
|
||||||
|
mkdir -p $LOGDIR
|
||||||
|
chown $USER:$GROUP $LOGDIR
|
||||||
|
fi
|
||||||
|
if [ ! -d $DBDIR ]; then
|
||||||
|
mkdir -p $DBDIR
|
||||||
|
chown -R $USER:$GROUP $DBDIR
|
||||||
|
fi
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting daemon: "$NAME
|
echo -n "Starting daemon: "$NAME
|
||||||
|
|||||||
Reference in New Issue
Block a user