Skip to content

Commit

Permalink
Add some docs while I'm at it
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaughan committed Aug 25, 2024
1 parent f94d97a commit aa8183a
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
12 changes: 12 additions & 0 deletions contrib/nxtp.service
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit aa8183a

Please sign in to comment.