aboutsummaryrefslogtreecommitdiff
path: root/extra/stackbin.service
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2022-02-14 22:49:17 -0500
committerB Stack <bgstack15@gmail.com>2022-02-14 22:49:17 -0500
commitc364901df2ef04553fc7508c31446ad14ac93737 (patch)
tree7f2441778eba0661195024484122e55754e52bcd /extra/stackbin.service
parentadd initial centos7 doc (diff)
downloadstackbin-c364901df2ef04553fc7508c31446ad14ac93737.tar.gz
stackbin-c364901df2ef04553fc7508c31446ad14ac93737.tar.bz2
stackbin-c364901df2ef04553fc7508c31446ad14ac93737.zip
r-proxy support with /set endpoint, and extra dir
The extra dir is still WIP
Diffstat (limited to 'extra/stackbin.service')
-rw-r--r--extra/stackbin.service20
1 files changed, 20 insertions, 0 deletions
diff --git a/extra/stackbin.service b/extra/stackbin.service
new file mode 100644
index 0000000..f3088be
--- /dev/null
+++ b/extra/stackbin.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=Stackbin pastebin service
+Wants=network-online.target
+After=network.target syslog.target
+
+[Service]
+#Environment=
+WorkingDirectory=/var/www/stackbin
+User=stackbin
+Group=stackbin
+Type=simple
+ExecStart=/usr/sbin/stackbin.bin
+TimeoutStartSec=120
+ExecStop=/usr/sbin/uwsgi --stop /var/www/stackbin/stackbin.pid
+RestartSec=15
+Restart=always
+KillSignal=SIGINT
+
+[Install]
+WantedBy=multi-user.target
bgstack15