summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-12-30 12:11:54 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-12-30 12:11:54 +0100
commitc961e2592fe2de0dc24a846af0ace22d0f4cad9a (patch)
treeb782477fb268877f0100051a925fbaa0a9653f52 /examples
parent047ddd0be5ead78c097796ea49d8342436e4a723 (diff)
Add systemd unit file example
Diffstat (limited to 'examples')
-rw-r--r--examples/db-infoscreen.service23
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/db-infoscreen.service b/examples/db-infoscreen.service
new file mode 100644
index 0000000..2ecc577
--- /dev/null
+++ b/examples/db-infoscreen.service
@@ -0,0 +1,23 @@
+[Unit]
+Description=dbf.finalrewind.org
+After=network.target
+
+[Service]
+Type=simple
+RemainAfterExit=yes
+PIDFile=/tmp/db-fakedisplay.pid
+ExecStart=/usr/bin/hypnotoad -f index.pl
+ExecStop=/usr/bin/hypnotoad -s index.pl
+ExecReload=/usr/bin/hypnotoad index.pl
+User=db-fakedisplay
+WorkingDirectory=/srv/www/db-fakedisplay
+Environment=LANG=en_US.UTF-8
+Environment=DBFAKEDISPLAY_LISTEN=http://127.0.0.1:8092
+Environment=DBFAKEDISPLAY_WORKERS=4
+Environment=DBFAKEDISPLAY_STATS=/tmp/dbf-api-stats
+Environment=DBFAKEDISPLAY_HAFAS_CACHE=/var/cache/dbf/hafas
+Environment=DBFAKEDISPLAY_IRIS_CACHE=/var/cache/dbf/iris
+Environment=DBFAKEDISPLAY_IRISRT_CACHE=/var/cache/dbf/iris-rt
+
+[Install]
+WantedBy=multi-user.target