Merge pull request #28 from jmccrohan/master

Fixes discovered during Debian packaging of nyancat 1.4.1
This commit is contained in:
Kevin Lange 2014-02-19 18:24:45 -08:00
commit f57942381a
4 changed files with 27 additions and 3 deletions

View File

@ -28,8 +28,8 @@ To use the telnet server, you need to add a configuration that runs:
nyancat -t
We recommend `openbsd-inetd`, but `xinetd` will work as well, and you should be
able to use any other compatible `inetd` flavor.
We recommend `openbsd-inetd`, but both `xinetd` and `systemd` work as well. You
should be able to use any other compatible `inetd` flavor too.
## Distribution Specific Information

View File

@ -1,6 +1,9 @@
OBJECTS = nyancat.o
CFLAGS=-g
CC ?=
CFLAGS ?= -g
CPPFLAGS ?=
LDFLAGS ?=
all: nyancat

9
systemd/nyancat.socket Normal file
View File

@ -0,0 +1,9 @@
[Unit]
Description=nyancat socket
[Socket]
ListenStream=23
Accept=true
[Install]
WantedBy=sockets.target

12
systemd/nyancat@.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=nyancat
Documentation=man:nyancat(1)
[Service]
User=nobody
ExecStart=-/usr/bin/nyancat -t
StandardInput=socket
StandardOutput=socket
[Install]
WantedBy=multi-user.target