You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The systemd service that is installed by craftbeerpi when you run "cbpi autostart" does not specify a kill signal, but the CBPI process seems to not respond to SIGTERM, which is the default kill signal.
When changing the kill signal to SIGKILL, the stopping of craftbeerpi service is much faster, although that feels like a workaround. Probably, the main python process needs to listen to SIGTERM instead.
With KillSignal=SIGTERM (default):
root@raspberry:~# systemctl start craftbeerpi.service
root@raspberry:~# time systemctl stop craftbeerpi.service
real 1m35.802s
user 0m0.027s
sys 0m0.025s
With KillSignal=SIGKILL:
root@raspberry:~# time systemctl stop craftbeerpi.service
real 0m5.161s
user 0m0.017s
sys 0m0.025s
Version information:
Craftbeerpi 4.4.7
Debian 12 (Bookworm)
Python 3.11.2
The text was updated successfully, but these errors were encountered:
I have observed the same issue but never found a good solution so far. I leave it open and maybe we will find something to overcome this issue. SIGKILL could cause some issues with the config files.
If you'd like, I can have a go at it. I found the code a little tough to get through, but one I find the while True, I'm pretty sure I can implement a decent enough solution.
The systemd service that is installed by craftbeerpi when you run "cbpi autostart" does not specify a kill signal, but the CBPI process seems to not respond to SIGTERM, which is the default kill signal.
When changing the kill signal to SIGKILL, the stopping of craftbeerpi service is much faster, although that feels like a workaround. Probably, the main python process needs to listen to SIGTERM instead.
With
KillSignal=SIGTERM
(default):With
KillSignal=SIGKILL
:Version information:
The text was updated successfully, but these errors were encountered: