Thanks for testing @jjakob
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
All Stories
Mar 22 2020
Couldn't reproduce in 1.3-rolling-20200319
Mar 21 2020
Is there any way I can help test this? I was trying to setup the same, but lack of link-local support prevents me from adding a v6 BGP peer without allocating IP addresses to the link.
Sorry, the task name was wrong, "save" resets it, "commit" doesn't. Personally I prefer if it'd stay the same, but I don't care if it resets it either.
Personally this is behavior I agree with.
Tested successfully in Crux.
@alien Can you please share your config, I can't reproduce it. The op function will be moved into the the ops script out of the ifconfig class, which caused the issue due to restructuring out internal class architecture.
Following script more appreciated
/run/atop/atop.acct {
rotate 0
nomissingok
size 100M
postrotate
PIDFILE=/run/atop.pid
if [ -e $PIDFILE ] && \
ps -p `cat $PIDFILE` | grep 'atop$' > /dev/null
then
kill -15 `cat $PIDFILE`
rm $PIDFILE
fi
sleep 1
/etc/init.d/atop restart
endscript
}Sometimes we use this for detecting memleak and some clients issues with high CPU load. When we get users /var/log/atop* then we can reproduce locally and find wrong process, memleaking etc.
Nice. What is atop actually used for?
Mar 20 2020
Thanks @syncer and @c-po . As I understand logrotate run once per day. I hope this will be enough
vyos@vyos:~# ls /etc/cron.daily/ | grep logro logrotate vyos@vyos:~# cat /etc/crontab | grep daily 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
So, now I have logrotate script for atop on my test router
cat /etc/logrotate.d/atop
/run/atop/atop.acct {
rotate 0
nomissingok
size 50M
postrotate
/etc/init.d/atop restart
endscript
}With manually run, seems all works
logrotate /etc/logrotate.d/atop --verbose reading config file /etc/logrotate.d/atop