From 0767a370289e3ef0b894a1dbae6f2bdbbfd6e3f2 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Jan 2016 11:11:12 +0000 Subject: [PATCH] add systemd unit files --- whois42d.service | 6 ++++++ whois42d.socket | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 whois42d.service create mode 100644 whois42d.socket diff --git a/whois42d.service b/whois42d.service new file mode 100644 index 0000000..65bce75 --- /dev/null +++ b/whois42d.service @@ -0,0 +1,6 @@ +[Unit] +Description=Whois dn42 daemon + +[Service] +ExecStart=/usr/local/bin/whois42d -registry /var/lib/whois42d/registry +User=nobody diff --git a/whois42d.socket b/whois42d.socket new file mode 100644 index 0000000..a983866 --- /dev/null +++ b/whois42d.socket @@ -0,0 +1,8 @@ +[Unit] +Description=Whois dn42 daemon socket + +[Socket] +ListenStream=43 + +[Install] +WantedBy=sockets.target