summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <msingleton@aclu.org>2017-04-22 11:12:13 -0400
committerMatt Singleton <msingleton@aclu.org>2017-04-22 11:12:13 -0400
commit76336db3237e122515f0ecec8c6a6c86790117c2 (patch)
tree93865a6cbf6bccb4375b1e8038da8103972816bd
parent020c9908def3a816e05984c3ee55457fc423a931 (diff)
systemd daemon service config
-rw-r--r--etc/unbiased.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/unbiased.service b/etc/unbiased.service
new file mode 100644
index 0000000..391e4ff
--- /dev/null
+++ b/etc/unbiased.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Unbiased News
+
+[Service]
+Type=simple
+ExecStart=/opt/unbiased/venv/bin/unbiased /opt/unbiased/webroot -l /opt/unbiased/logs
+WorkingDirectory=/opt/unbiased
+User=www-data
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target