aboutsummaryrefslogtreecommitdiff
path: root/extra/outbound.service
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2022-11-29 16:09:22 -0500
committerB. Stack <bgstack15@gmail.com>2022-11-29 16:09:22 -0500
commit4a8ce7e2862b338a7f8e34d016a3119290239b0b (patch)
tree951ad8a52ddf31e489e4fab7c0d0c96947d6b0f4 /extra/outbound.service
downloadoutbound-4a8ce7e2862b338a7f8e34d016a3119290239b0b.tar.gz
outbound-4a8ce7e2862b338a7f8e34d016a3119290239b0b.tar.bz2
outbound-4a8ce7e2862b338a7f8e34d016a3119290239b0b.zip
initial commitHEADmaster
Diffstat (limited to 'extra/outbound.service')
-rw-r--r--extra/outbound.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/extra/outbound.service b/extra/outbound.service
new file mode 100644
index 0000000..a33a1f3
--- /dev/null
+++ b/extra/outbound.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=outbound link usage tracker webapp
+Wants=network-online.target
+After=network.target syslog.target
+
+[Service]
+Environment=OUTBOUND_WSGI_INI=/etc/outbound.wsgi.ini
+Environment=OUTBOUND_CONF=/etc/outbound.conf
+WorkingDirectory=/var/outbound
+User=outbound
+Group=outbound
+Type=simple
+ExecStart=/usr/sbin/outbound.bin
+TimeoutStartSec=120
+ExecStop=/usr/sbin/uwsgi --stop /var/outbound/outbound-wsgi.pid
+RestartSec=15
+Restart=always
+KillSignal=SIGINT
+
+[Install]
+WantedBy=multi-user.target
bgstack15