Hi,

I've been doing some modifications to the Underground Controller System
at Wimborne Model Town.  This is a Pi Zero based device that I first put
in around January 2019, which provided for the model underground train
to run backwards and forwards over a short piece of track, stopping in a
tunnel in the middle.  Up until lockdown the system ran reasonably well,
with the odd glitch, mainly due to the train not being powerful enough
for the load.

I then had little to do with it because I was staying away from public
places, and while I was away the old Railway Team replaced it with a
commercial controller, (which did less).

I am currently trying to debug the system, but unfortunately I can't
find out how to properly stop the software that runs automatically on
startup.  We had a (fairly) common strategy for starting these programs,
utilising .bashrc or .profile, but I can't even find out how this one is
started.  I've looked at the above two methods (for both the Pi user and
root, also crontab, systemd and rc.local.

Even more confusing to me is the fact that the software appears to be
running as a service under avahi-deamon.  I have no recollection of
doing this, so I'm assuming that this occurred when the Pi's OS was
upgraded at some time in the past.

I can stop the avahi-daemon undergroundpi service with kill providing I
am logged in as root.

So.  How does avahi-deamon start a program and how can I stop it?

--
Terry Coles


--
 Next meeting: Online, Jitsi, Tuesday, 2025-04-01 20:00
 Check to whom you are replying
 Meetings, mailing list, IRC, ...  https://dorset.lug.org.uk
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to