Merge pull request #28 from jmccrohan/master
Fixes discovered during Debian packaging of nyancat 1.4.1
This commit is contained in:
commit
f57942381a
@ -28,8 +28,8 @@ To use the telnet server, you need to add a configuration that runs:
|
|||||||
|
|
||||||
nyancat -t
|
nyancat -t
|
||||||
|
|
||||||
We recommend `openbsd-inetd`, but `xinetd` will work as well, and you should be
|
We recommend `openbsd-inetd`, but both `xinetd` and `systemd` work as well. You
|
||||||
able to use any other compatible `inetd` flavor.
|
should be able to use any other compatible `inetd` flavor too.
|
||||||
|
|
||||||
## Distribution Specific Information
|
## Distribution Specific Information
|
||||||
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
OBJECTS = nyancat.o
|
OBJECTS = nyancat.o
|
||||||
|
|
||||||
CFLAGS=-g
|
CC ?=
|
||||||
|
CFLAGS ?= -g
|
||||||
|
CPPFLAGS ?=
|
||||||
|
LDFLAGS ?=
|
||||||
|
|
||||||
all: nyancat
|
all: nyancat
|
||||||
|
|
||||||
|
9
systemd/nyancat.socket
Normal file
9
systemd/nyancat.socket
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=nyancat socket
|
||||||
|
|
||||||
|
[Socket]
|
||||||
|
ListenStream=23
|
||||||
|
Accept=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sockets.target
|
12
systemd/nyancat@.service
Normal file
12
systemd/nyancat@.service
Normal 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
|
Loading…
Reference in New Issue
Block a user