summaryrefslogtreecommitdiffstats
path: root/debian/ttyd.service
diff options
context:
space:
mode:
Diffstat (limited to 'debian/ttyd.service')
-rw-r--r--debian/ttyd.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/ttyd.service b/debian/ttyd.service
new file mode 100644
index 0000000..25956c7
--- /dev/null
+++ b/debian/ttyd.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=ttyd daemon
+Documentation=man:ttyd(1)
+After=network.target systemd-tmpfiles-clean.service
+
+[Service]
+Type=simple
+EnvironmentFile=/etc/default/ttyd
+ExecStart=/usr/bin/ttyd $TTYD_OPTIONS
+ExecReload=/usr/bin/kill -HUP $MAINPID
+KillMode=process
+LimitNOFILE=512
+LimitMEMLOCK=infinity
+LimitSTACK=infinity
+
+[Install]
+WantedBy=multi-user.target