Skip to content
Snippets Groups Projects
Commit b9cb5bba authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Merge branch 'hotfix-logrotate-1gb-every-12h' into 'master'

[*] logrotate every 12 hours

See merge request !1057
parents 564c3ee3 dd34ce9e
No related branches found
No related tags found
1 merge request!1057[*] logrotate every 12 hours
"/opt/cellframe-node/var/log/*.log" {
copytruncate
hourly
maxsize 10M
rotate 4
maxsize 1G
rotate 16
compress
missingok
notifempty
......
......@@ -3,7 +3,7 @@ Description=Hourly rotation of log files
Documentation=man:logrotate(8) man:logrotate.conf(5)
[Timer]
OnCalendar=hourly
OnCalendar=*-*-* */12:00:00
AccuracySec=1m
Persistent=true
......
......@@ -47,5 +47,15 @@ service cellframe-node stop
#for shure, "service stop" not olways stops the node...
kill -9 `cat /opt/cellframe-node/var/run/cellframe-node.pid` || true
if (( MAX_REBUILD == 250 )); then
echo "Clear global-db dir..."
rm /opt/cellframe-node/var/lib/global_db/ -r
else
echo "No need to clear global_db"
fi
dpkg -i /tmp/cfupd/$PACKAGE_NAME
service cellframe-node restart
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment