I did a make from the latest on here, created a systemd service gclog.service, containing:
[Unit]
Description=GClog radioactive data feeder
After=network.target
[Service]
ExecStart=/usr/local/bin/gclog -v -c /etc/gclog.conf
Restart=on-failure
RestartSec=20s
[Install]
WantedBy=default.target
2023-08-07T12:28:22.176925+02:00 greeny systemd[1]: Started gclog.service - GClog radioactive data feeder.
2023-08-07T12:28:22.796038+02:00 greeny gclog[2570]: Configuration:
2023-08-07T12:28:22.796192+02:00 greeny gclog[2570]: #011#011GQ GMC Geiger Counter on /dev/ttyUSB0 @ 0010002,
2023-08-07T12:28:22.796276+02:00 greeny gclog[2570]: #011#011Location: x
2023-08-07T12:28:22.796344+02:00 greeny gclog[2570]: #011#011netc.com: (null),
2023-08-07T12:28:22.796411+02:00 greeny gclog[2570]: #011#011radmon.org: x / xblahblah,
2023-08-07T12:28:22.796497+02:00 greeny gclog[2570]: #011#011safecast.org: xDidtfLG2YK / Device ID xx5,
2023-08-07T12:28:22.796567+02:00 greeny gclog[2570]: #011#011gmcmap.com: x45x7 / Device ID 5x75x05x750,
2023-08-07T12:28:22.796664+02:00 greeny gclog[2570]: #011#01160s interval
2023-08-07T12:28:22.797361+02:00 greeny gclog[2571]: Configuration:
2023-08-07T12:28:22.797475+02:00 greeny gclog[2571]: #011#011GQ GMC Geiger Counter on /dev/ttyUSB0 @ 0010002,
2023-08-07T12:28:22.797666+02:00 greeny gclog[2571]: #011#011Location: x
2023-08-07T12:28:22.797837+02:00 greeny gclog[2571]: #011#011netc.com: (null),
2023-08-07T12:28:22.797985+02:00 greeny gclog[2571]: #011#011radmon.org: x / xblahblah,
2023-08-07T12:28:22.798066+02:00 greeny gclog[2571]: #011#011safecast.org: xidtfLG2YK / Device ID xx5,
2023-08-07T12:28:22.798156+02:00 greeny gclog[2571]: #011#011gmcmap.com: x45x7 / Device ID 5x75x05x750,
2023-08-07T12:28:22.798275+02:00 greeny gclog[2571]: #011#01160s interval
2023-08-07T12:28:22.798401+02:00 greeny gclog[2571]: [DEBUG] Entering main loop...
2023-08-07T12:28:22.798677+02:00 greeny gclog[2571]: [DEBUG] Main loop exited. Cleaning up...
2023-08-07T12:28:22.799433+02:00 greeny systemd[1]: gclog.service: Deactivated successfully.
and the process just ends there. First it's strange it seems to run twice in a row after starting it from the service file, then it exits and deactivates, while nothing in the service would implicate this. SElinux or apparmor aren't running on this machine, so those can't be it.
Furthermore, when I run it by hand from the commandline, just running
/usr/local/bin/gclog -v -c /etc/gclog.conf
it does just fine and keeps running in the background, Entering main loop without ending....