diff --git a/README.md b/README.md index f024cd7..3505e3c 100644 --- a/README.md +++ b/README.md @@ -57,6 +57,14 @@ Restart = on-failure Under `contrib` is a NetBSD rc script. It expects _daemond_ to be installed to help daemonise the server, which you can do with `pkgin install daemond`. +## Running under Docker + +To start the daemon in a Docker container, run: + +```sh +docker run -d -p 12300:12300 ghcr.io/kgaughan/nxtp:latest +``` + ## Building Run the following: diff --git a/contrib/nxtp.service b/contrib/nxtp.service new file mode 100644 index 0000000..2e64d1b --- /dev/null +++ b/contrib/nxtp.service @@ -0,0 +1,12 @@ +[Unit] +Description = Network neXt Time Protocol (NXTP) server +After = network.target + +[Service] +Type = simple +ExecStart = /usr/bin/nxtp +KillMode = process +RestartSec = 5s +Restart = on-failure + +# vi:set ft=dosini: