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

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