Just a note to myself. To restart an s6-overlay service in a container do:
1 |
s6-svc -r /var/run/s6/services/<service name> |
For other signals I can use check out the s6-svc
doc.
Yes, typically there’s no need to restart a service in a container as you’d just restart the container. And the Docker approach is to have one service per container. But with s6 you maybe have a couple of services in one container and sometimes you might want to restart or reload a service. At least I do, so this is more of an edge case. :)