Add systemd unit files
Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
This commit is contained in:
parent
d9d0d5e3cc
commit
57ee01929a
@ -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
|
||||||
|
|
||||||
|
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