summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-27 20:03:56 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-27 20:04:27 +0100
commit8acc010fa83650c1d2c0546fafc16a9ab0fc265e (patch)
treed11aa702f3d4ca2bd78f94783abb6f443c392da1 /examples
parent87a3ceb0c1d853ea6d12cd080e6e1e92919874a4 (diff)
update systemd unit file
Diffstat (limited to 'examples')
-rw-r--r--examples/travelynx.service24
1 files changed, 21 insertions, 3 deletions
diff --git a/examples/travelynx.service b/examples/travelynx.service
index 1935ee2..a946984 100644
--- a/examples/travelynx.service
+++ b/examples/travelynx.service
@@ -4,13 +4,31 @@ After=network.target
[Service]
Type=simple
-ExecStart=/srv/www/travelynx/index.pl daemon -m production -l 'http://127.0.0.1:8093'
-User=db-fakedisplay
+RemainAfterExit=yes
+PIDFile=/tmp/travelynx.pid
+
+ExecStart=/usr/bin/hypnotoad -f index.pl
+ExecStop=/usr/bin/hypnotoad -s index.pl
+ExecReload=/usr/bin/hypnotoad index.pl
+
+User=travelynx
WorkingDirectory=/srv/www/travelynx
+
Environment=LANG=en_US.UTF-8
+
+Environment=TRAVELYNX_DB_NAME=travelynx
+Environment=TRAVELYNX_DB_HOST=localhost
+Environment=TRAVELYNX_DB_PORT=5432
+Environment=TRAVELYNX_DB_USER=travelynx
+Environment=TRAVELYNX_DB_PASSWORD= ! CHANGEME !
+
+Environment=TRAVELYNX_SECRETS= ! CHANGEME !
+
+Environment=TRAVELYNX_WORKERS=2
+Environment=TRAVELYNX_LISTEN=http://127.0.0.1:8093
+
Environment=TRAVELYNX_IRIS_CACHE=/var/cache/dbf/iris
Environment=TRAVELYNX_IRISRT_CACHE=/var/cache/dbf/iris-rt
-Environment=TRAVELYNX_DB_FILE=/srv/www/travelynx/run/travelynx.sqlite
[Install]
WantedBy=multi-user.target