So as the second step I checked this on my "regular" node with openwrt
19.07.4
logread shows:
Tue Nov 10 10:34:00 2020 cron.info crond[720]: USER root pid 21244 cmd
((sleep $(($RANDOM % 30));
/etc/shared-state/publishers/shared-state-publish_vouchers && shared-state
sync pirania &> /dev/null)&)
Tue Nov 10 10:35:00 2020 cron.info crond[720]: USER root pid 21392 cmd
((sleep $(($RANDOM % 120)); shared-state sync babeld-hosts &> /dev/null)&)
Tue Nov 10 10:35:00 2020 cron.info crond[720]: USER root pid 21393 cmd
((sleep $(($RANDOM % 120)); shared-state sync bat-hosts &> /dev/null)&)
Tue Nov 10 10:35:00 2020 cron.info crond[720]: USER root pid 21394 cmd
((sleep $(($RANDOM % 120)); shared-state sync dnsmasq-hosts &> /dev/null)&)
Tue Nov 10 10:35:00 2020 cron.info crond[720]: USER root pid 21396 cmd
((sleep $(($RANDOM % 120)); shared-state sync dnsmasq-leases &> /dev/null)&)
Tue Nov 10 10:35:00 2020 cron.info crond[720]: USER root pid 21398 cmd
((sleep $(($RANDOM % 120)); shared-state sync nodes_and_links &>
/dev/null)&)
Tue Nov 10 10:35:00 2020 cron.info crond[720]: USER root pid 21403 cmd (
for file in /etc/alfred/* ; do [ -x $file ] && $file ; done )
Tue Nov 10 10:36:00 2020 cron.info crond[720]: USER root pid 21542 cmd
((for dataFile in /var/shared-state/data/* ; do shared-state bleach
$(basename $dataFile .json); done &> /dev/null)&)
Tue Nov 10 10:36:00 2020 cron.info crond[720]: USER root pid 21543 cmd
((sleep $(($RANDOM % 30));
/etc/shared-state/publishers/shared-state-publish_vouchers && shared-state
sync pirania &> /dev/null)&)
So no value, too
BUT its an cron.info, not an cron.err like below.
AND
echo $RANDOM shows a random value each time...
So again a problem of snapshot!
Regards,
Andy
Am Di., 10. Nov. 2020 um 10:32 Uhr schrieb Andy Schopf <
andymcschopf(a)gmail.com>gt;:
hi all,
I found this output in logread:
Tue Nov 10 10:24:00 2020 cron.err crond[4541]: USER root pid 7114 cmd
((sleep $(($RANDOM % 30));
/etc/shared-state/publishers/shared-state-publish_vouchers && shared-state
sync pirania &> /dev/null)&)
Tue Nov 10 10:24:00 2020 cron.err crond[4541]: USER root pid 7115 cmd
((for dataFile in /var/shared-state/data/* ; do shared-state bleach
$(basename $dataFile .json); done &> /dev/null)&)
Tue Nov 10 10:25:00 2020 cron.err crond[4541]: USER root pid 7133 cmd
((sleep $(($RANDOM % 120)); shared-state sync dnsmasq-leases &> /dev/null)&)
Tue Nov 10 10:25:00 2020 cron.err crond[4541]: USER root pid 7134 cmd
((sleep $(($RANDOM % 120)); shared-state sync babeld-hosts &> /dev/null)&)
Tue Nov 10 10:25:00 2020 cron.err crond[4541]: USER root pid 7135 cmd
((sleep $(($RANDOM % 120)); shared-state sync bat-hosts &> /dev/null)&)
Tue Nov 10 10:25:00 2020 cron.err crond[4541]: USER root pid 7136 cmd
((sleep $(($RANDOM % 120)); shared-state sync nodes_and_links &>
/dev/null)&)
Tue Nov 10 10:25:00 2020 cron.err crond[4541]: USER root pid 7137 cmd
((sleep $(($RANDOM % 120)); shared-state sync dnsmasq-hosts &> /dev/null)&)
Tue Nov 10 10:25:00 2020 cron.err crond[4541]: USER root pid 7138 cmd (
for file in /etc/alfred/* ; do [ -x $file ] && $file ; done )
Tue Nov 10 10:26:00 2020 cron.err crond[4541]: USER root pid 7154 cmd
((sleep $(($RANDOM % 30));
/etc/shared-state/publishers/shared-state-publish_vouchers && shared-state
sync pirania &> /dev/null)&)
I thought the output in the logilfe should be with the used values?
I also got no return of an value by -> echo $RANDOM
Where should this be initialized?
Regards,
Andy