Add systemd unit files

Signed-off-by: Jonathan McCrohan <jmccrohan@gmail.com>
This commit is contained in:
Jonathan McCrohan 2014-02-20 02:14:10 +00:00
parent d9d0d5e3cc
commit 57ee01929a
3 changed files with 23 additions and 2 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

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