summaryrefslogtreecommitdiff
path: root/init/jimbrella-web.service
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2021-11-25 07:53:25 +0800
committerFrederick Yin <fkfd@fkfd.me>2021-11-25 07:53:25 +0800
commit3847d0479192f3150df19affe8d8712f83167ac8 (patch)
tree0e14b31dffd40292f81264854b892a2f72521984 /init/jimbrella-web.service
parent8a1b86bb03c1a3df475fff72900b4a757033d872 (diff)
Add systemd services
Diffstat (limited to 'init/jimbrella-web.service')
-rw-r--r--init/jimbrella-web.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/init/jimbrella-web.service b/init/jimbrella-web.service
new file mode 100644
index 0000000..3de7deb
--- /dev/null
+++ b/init/jimbrella-web.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=JImbrella uWSGI
+After=syslog.target
+
+[Service]
+User=jim
+WorkingDirectory=/opt/jimbrella
+ExecStart=/usr/local/bin/uwsgi -s 127.0.0.1:5000 --manage-script-name --module jimbrella.web --callable app
+Restart=always
+KillSignal=SIGQUIT
+Type=notify
+StandardError=syslog
+NotifyAccess=all
+
+[Install]
+WantedBy=multi-user.target