mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-19 09:50:19 +01:00
cl.install: add logrotate
This commit is contained in:
parent
225891651c
commit
488ffec0d3
@ -204,6 +204,29 @@ always-use-proxy=true
|
||||
###################
|
||||
/home/admin/config.scripts/cl.install-service.sh $CHAIN
|
||||
|
||||
#############
|
||||
# logrotate #
|
||||
#############
|
||||
echo "\
|
||||
/home/bitcoin/.lightning/${CLNETWORK}/cl.log
|
||||
{
|
||||
rotate 5
|
||||
daily
|
||||
copytruncate
|
||||
missingok
|
||||
olddir /home/bitcoin/.lightning/${CLNETWORK}/cl.log_old
|
||||
notifempty
|
||||
nocompress
|
||||
sharedscripts
|
||||
# We don't need to kill as we use copytruncate
|
||||
#postrotate
|
||||
# kill -HUP \`cat /run/lightningd/lightningd.pid\'
|
||||
#endscript
|
||||
su bitcoin bitcoin
|
||||
}" | sudo tee /etc/logrotate.d/${netprefix}lightningd
|
||||
# debug:
|
||||
# sudo logrotate --debug /etc/logrotate.d/lightningd
|
||||
|
||||
echo
|
||||
echo "# Adding aliases"
|
||||
echo "\
|
||||
|
Loading…
Reference in New Issue
Block a user