summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-12-30 13:40:47 +0100
committerDaniel Friesel <derf@finalrewind.org>2018-12-30 13:40:47 +0100
commitb6b2f9926512b4bafa91b40bfe9bf3ba52abb4bb (patch)
tree8e9aee9d5143b129940f12cd18e9414498f6a777 /examples
parente00fb0a18136ca8f4bf826952ce7a9b2328e10df (diff)
add README and example unit file
Diffstat (limited to 'examples')
-rw-r--r--examples/vrr-infoscreen.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/vrr-infoscreen.service b/examples/vrr-infoscreen.service
new file mode 100644
index 0000000..39b3171
--- /dev/null
+++ b/examples/vrr-infoscreen.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=vrrf.finalrewind.org
+After=network.target
+
+[Service]
+Type=simple
+RemainAfterExit=yes
+PIDFile=/tmp/vrr-fakedisplay.pid
+ExecStart=/usr/bin/hypnotoad -f index.pl
+ExecStop=/usr/bin/hypnotoad -s index.pl
+ExecReload=/usr/bin/hypnotoad index.pl
+User=vrr-fakedisplay
+WorkingDirectory=/srv/www/vrr-fakedisplay
+Environment=LANG=en_US.UTF-8
+Environment=VRRFAKEDISPLAY_LISTEN=http://127.0.0.1:8091
+Environment=VRRFAKEDISPLAY_WORKERS=1
+Environment=VRRFAKEDISPLAY_STATS=/tmp/vrrf-api-stats
+Environment=VRRFAKEDISPLAY_CACHE=/var/cache/vrrf/main
+
+[Install]
+WantedBy=multi-user.target