Skip to content

Commit

Permalink
uWSGI config and service file
Browse files Browse the repository at this point in the history
  • Loading branch information
LRRbot committed May 3, 2016
1 parent 9fdbe50 commit 02ce523
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
10 changes: 10 additions & 0 deletions uwsgi.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[uwsgi]
uid = lrrbot
plugin = python35
module = webserver
callable = app
workers = 5
harakiri = 60
lazy-apps = true
logger = systemd
chmod-socket = 666
14 changes: 14 additions & 0 deletions uwsgi.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=LoadingReadyLive chatbot: uWSGI workers

[Service]
Type=notify
KillSignal=SIGINT
TimeoutStartSec=15s
Restart=always
NotifyAccess=main
WorkingDirectory=%h/lrrbot
ExecStart=/usr/bin/env uwsgi --ini uwsgi.ini --socket /tmp/uwsgi-lrrbot.sock

[Install]
WantedBy=default.target

0 comments on commit 02ce523

Please sign in to comment.