-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
71 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[Unit] | ||
Description=uWSGI server for %i app | ||
Before=multi-user.target | ||
Before=graphical.target | ||
After=remote-fs.target | ||
After=network-online.target | ||
Wants=network-online.target | ||
Wants=prometheus-uwsgi-exporter@%i.service | ||
|
||
[Service] | ||
ExecStart=/usr/bin/uwsgi --ini /etc/uwsgi/base.ini --ini /etc/uwsgi/apps-available/%i.ini | ||
ExecReload=/bin/kill -HUP $MAINPID | ||
RuntimeDirectory=uwsgi/app/%i | ||
# Newer versions of systemd export RUNTIME_DIRECTORY automatically, but not the | ||
# version we have. | ||
Environment=RUNTIME_DIRECTORY=%t/uwsgi/app/%i | ||
User=www-data | ||
Group=www-data | ||
Restart=on-failure | ||
KillSignal=SIGQUIT | ||
Type=notify | ||
NotifyAccess=all | ||
|
||
[Install] | ||
WantedBy=default.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[uwsgi] | ||
ini = /opt/backoffice/id3c-production/uwsgi.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[uwsgi] | ||
ini = /opt/backoffice/id3c-testing/uwsgi.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[uwsgi] | ||
ini = /opt/backoffice/husky-musher/uwsgi.ini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Originally based on the Ubuntu defaults in /usr/share/uwsgi/conf/default.ini. | ||
# Expects to be run under the systemd [email protected] template. | ||
[uwsgi] | ||
# try to autoload appropriate plugin if "unknown" option has been specified | ||
autoload = true | ||
|
||
# enable main process manager | ||
master = true | ||
|
||
# start a couple worker/child processes by default | ||
processes = 2 | ||
|
||
# automatically stop child procs when the main proc goes away | ||
no-orphans = true | ||
|
||
# app and stats sockets | ||
socket = $(RUNTIME_DIRECTORY)/socket | ||
stats = $(RUNTIME_DIRECTORY)/stats | ||
chmod-socket = 660 | ||
|
||
# place timestamps into log | ||
log-date = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters