It was the Bitcointalk forum that inspired us to create Bitcointalksearch.org - Bitcointalk is an excellent site that should be the default page for anybody dealing in cryptocurrency, since it is a virtual gold-mine of data. However, our experience and user feedback led us create our site; Bitcointalk's search is slow, and difficult to get the results you need, because you need to log in first to find anything useful - furthermore, there are rate limiters for their search functionality.
The aim of our project is to create a faster website that yields more results and faster without having to create an account and eliminate the need to log in - your personal data, therefore, will never be in jeopardy since we are not asking for any of your data and you don't need to provide them to use our site with all of its capabilities.
We created this website with the sole purpose of users being able to search quickly and efficiently in the field of cryptocurrency so they will have access to the latest and most accurate information and thereby assisting the crypto-community at large.
sudo systemctl status logrotate.timer
/home/ava/.bitcoin/debug.log /home/ava/.bitcoin/testnet3/debug.log /home/ava/.bitcoin/signet/debug.log {
rotate -1
size 5M
dateformat %Y-%m-%d-%H_%M
dateext
olddir oldlogs
postrotate
/home/ava/.bitcoin/finish-logrotate.sh $@
endscript
}
#! /usr/bin/bash
LOGS_DIR=$(dirname ${2})
BASE_DIR=$(dirname ${LOGS_DIR})
PID_FILE="${BASE_DIR}/bitcoind.pid"
NET=$(basename ${BASE_DIR})
if [[ "$NET" == .bitcoin ]]; then
NET="mainnet"
fi
if [[ -f "${PID_FILE}" ]]; then
kill -s SIGHUP $(cat ${PID_FILE})
fi
for f in ${LOGS_DIR}/*; do
gzip -q ${f}
done
if [[ $(mountpoint "/mnt/data") ]]; then
NAS_LOGS_DIR="/mnt/data/bitcoin/oldlogs/${NET}/"
mv $LOGS_DIR/* $NAS_LOGS_DIR
fi
[Unit]
Description=Hourly rotation of log files
Documentation=man:logrotate(8) man:logrotate.conf(5)
[Timer]
OnCalendar=hourly
AccuracySec=1h
Persistent=true
[Install]
WantedBy=timers.target
minsize size
Log files are rotated when they grow bigger than size bytes, but not before the additionally specified time interval (daily, weekly, monthly, or yearly). The related size option is similar except that it is mutually
exclusive with the time interval options, and it causes log files to be rotated without regard for the last rotation time, if specified after the time criteria (the last specified option takes the precedence). When
minsize is used, both the size and timestamp of a log file are considered.
size size
Log files are rotated only if they grow bigger than size bytes. If size is followed by k, the size is assumed to be in kilobytes. If M is used, the size is in megabytes, and if G is used, the size is in gigabytes.
So size 100, size 100k, size 100M and size 100G are all valid. This option is mutually exclusive with the time interval options, and it causes log files to be rotated without regard for the last rotation time, if
specified after the time criteria (the last specified option takes the precedence).
maxsize size
Log files are rotated when they grow bigger than size bytes even before the additionally specified time interval (daily, weekly, monthly, or yearly). The related size option is similar except that it is mutually ex‐
clusive with the time interval options, and it causes log files to be rotated without regard for the last rotation time, if specified after the time criteria (the last specified option takes the precedence). When
maxsize is used, both the size and timestamp of a log file are considered.
$ cat /etc/logrotate.d/bitcoin
/home/xxxxxxxxxx/.bitcoin/debug.log{
daily
rotate 5
missingok
copytruncate
notifempty
maxsize 50M
delaycompress
sharedscripts
postrotate
kill -HUP `cat /home/xxxxxxxxxx/.bitcoin/bitcoin.pid`
endscript
}
$ cat /etc/logrotate.d/lightningd
/home/xxxxxxxxxx/.lightning/debug.log{
daily
rotate 5
missingok
copytruncate
notifempty
maxsize 50M
delaycompress
sharedscripts
postrotate
kill -HUP `cat /home/xxxxxxxxxx/.lightningd/lightningd-bitcoin.pid`
endscript
}
-rw------- 1 xxxxxxxxxx xxxxxxxxxx 1.1G Aug 13 20:41 debug.log
-rw------- 1 xxxxxxxxxx xxxxxxxxxx 1.2G Aug 13 00:00 debug.log.1
-rw------- 1 xxxxxxxxxx xxxxxxxxxx 1.6G Aug 12 00:00 debug.log.2
-rw------- 1 xxxxxxxxxx xxxxxxxxxx 1.2G Aug 11 00:00 debug.log.3
-rw------- 1 xxxxxxxxxx xxxxxxxxxx 1.9G Aug 10 00:00 debug.log.4
-rw------- 1 xxxxxxxxxx xxxxxxxxxx 1.4G Aug 9 00:00 debug.log.5
-rw-r--r-- 1 xxxxxxxxxx xxxxxxxxxx 53M Aug 13 20:43 debug.log
-rw-r--r-- 1 xxxxxxxxxx xxxxxxxxxx 47M Aug 13 00:00 debug.log.1
-rw-r--r-- 1 xxxxxxxxxx xxxxxxxxxx 47M Aug 12 00:00 debug.log.2
-rw-r--r-- 1 xxxxxxxxxx xxxxxxxxxx 27M Aug 11 00:00 debug.log.3
-rw-r--r-- 1 xxxxxxxxxx xxxxxxxxxx 30M Aug 10 00:00 debug.log.4
-rw-r--r-- 1 xxxxxxxxxx xxxxxxxxxx 27M Aug 9 00:00 debug.log.5
-rw-r--r-- 1 xxxxxxxxxx xxxxxxxxxx 33M Aug 8 00:00 debug.log.6