This is a multi-legged beastie.
The /opt/Sam_Dev/install/wifi_led_status.sh script does two things:
-
It has it’s own 2 second timer that continuously polls.
- If we assume that a python program that instantiates a class, destroys any and all class instances when it exits, then this doesn’t instantiate a zillion classes because those things that depend on GoPiGo libraries run, do something, and end.
-
It also pings, (pokes at?), some kind of program autoloader, (autorun.service), which also spams the syslog.
=====================================
What I did:
-
I disabled the autorun.service
-
I renamed the wifi_led_status.sh script to wifi_led_status1.sh.
-
I created a “wrapper” script, wifi_led_status.sh, that simply takes the output of the original script and sends it to /dev/null
Viz.:
#!/usr/bin/env bash
#
# This is a wrapper script for the original wifi_led_status script
# to supress all the noise in the system log.
# We pass the one parameter sent, (either "start" or "stop")
/opt/Sam_Dev/install/wifi_led_status-1.sh $1 > /dev/null 2&>1
The wrapper script, and killing off the autorun.service, effectively suppresses the noise in the syslog without affecting the operation of the LED status script.
This is the original LED status script.
wifi_led_status-1.sh.txt (8.2 KB)
I don’t know if it can be run in such a way that changes to the WiFi status send messages to it or not. Quite frankly, I don’t know if Bash scripts can handle message queues or not either.
Additional note:
I do not know what the autorun.service and the associated script do that’s important. I also don’t know if there will be any untoward side-effects. To the extent that I DID look at the output of the syslog when it was running, it appears to do nothing but cycle. " But then again, I could be dead-wrong.
Actually, I know exactly what it does. Something else puts a file/link/whatever into a special “pending” folder in it’s twig of the filesystem and - if anything’s there - it runs it. It sets a timer that “bites” every two or three seconds, (I think three), which causes it to re-start itself, check “pending” for anything to do, run them if there is, and die off waiting for the next timer bite.
What I don’t know is why it’s there and what it does that’s important to the robot - it appears to be some kind of auto-installer that works in the background. Maybe legacy code from Raspbian for Robots or Dexter O/S versions gone by? Darned if I know. . .
If you have the time, (and who am I kidding?), and want to take a look at that script, go right ahead. Just don’t blame me.
I, (like you), am trying to fight other issues and I already spent a day and a half on this beastie. I want to get back to the display research I want to do.
P.S.
I searched the Dexter Industries GitHub repo, and there’s no mention of that particular script anywhere.