/sighup

A Docker image responding to SIGHUP signals

Primary LanguageShellMIT LicenseMIT

sighup 🐳

This container logs the current date when it receives the SIGHUP signal.

Why?

I needed something simple to perform SIGHUP notification tests with docker-gen.

Build

$ docker build -t thiht/sighup:latest .

Run

$ docker run -d --name sighup thiht/sighup:latest

Test

$ docker kill -s HUP sighup
$ docker logs sighup
Sat Dec  2 14:43:23 UTC 2017

License

See the LICENSE file.