Closed JonLaliberte closed 2 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
The service is managed by s6. You shouldn't restart it manually through the client.
@aptalca Is there a way to ask s6 to restart it? I looked around a bit, but didn't find anything obvious. Normally I'd use service/sysctl, but I started using the f2b client after seeing this post: https://discourse.linuxserver.io/t/swag-how-to-reload-restart-fail2ban-service/8020/4
s6-svc -h /run/service/svc-fail2ban
But keep in mind that we don't officially support running manual commands inside the container unless we instruct you to do so (like we do for fail2ban-client status <jail name>
and fail2ban-client set <jail name> unbanip <IP>
). That's because users can easily break things in there and it makes it near impossible for us to reproduce or even figure out what they did.
The supported method for restarting services is to restart the container so they go through the proper init steps in a reproducible manner.
Got it, thanks!
Is there an existing issue for this?
Current Behavior
If you run, for example:
every second or so.
There must be something in the swag container to keep f2b running and it causes some problem.
Running:
This also works
Expected Behavior
f2b should restart without spamming the log/errors
Steps To Reproduce
See above.
Environment
CPU architecture
x86-64
Docker creation
Container logs