flatcar / sdnotify-proxy

Proxy the sd_notify messages between systemd and process in a different cgroup

Home Page:https://github.com/kinvolk/flatcar/issues

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sdnotify-proxy

This hack solves the problem of Docker containers running under systemd and wishing to make use of sd_notify facility. Because Docker containers end up running as child processes of Docker daemon, they are in a cgroup different from that of the service. systemd will thus not process sd_notify events from them.

This utility will proxy events between Docker container and systemd. It is launched with name of proxy socket and a command to execute. It will then start listening on the proxy socket and execute the command.

About

Proxy the sd_notify messages between systemd and process in a different cgroup

https://github.com/kinvolk/flatcar/issues

License:Apache License 2.0


Languages

Language:Go 84.3%Language:Shell 15.7%