-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GCLog fails to stay running on debian 12.. #5
Comments
GCLog spawns a child process on startup. To allow systemd to monitor this, add the The start routine would have to be adapted to the current requirements. |
OK, I think I have it functional now, this is the correct service:
where /root/io/gclog.sh contains;
I added the User root option because it will in some cases otherwise fail to run a shell script residing under /root. You could push this to your master, but I don't have the time to do so. |
Great that it works now. As a starting point, I added a systemd service template. |
This service file does not work (on deb 12 anyway). It starts and then fails to get data from the device. No sure why, but it only gets "ZERO" values. (Your service also runs /usr/bin/gclog not /usr/local/bin/gclog as stated in your howto, not that that matters, but still)
|
FWIW, I simply run gclog with the [Unit]
Description=GCLog Daemon
After=network-online.target
[Service]
SyslogIdentifier=gclogd
Restart=always
RestartSec=5
Type=simple
ExecStart=/usr/bin/gclog -c /etc/gclog.conf -vv -d
TimeoutStopSec=30
[Install]
WantedBy=multi-user.target |
Works fine, pity that the log then always shows [DEBUG}, so perhaps Stephan can update code to just handle it as if it is debugging, which is functional for the later systemd systems.. |
I did a make from the latest on here, created a systemd service gclog.service, containing:
Then this happens at boot:
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....
What am I doing wrong here?
The text was updated successfully, but these errors were encountered: