Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions Systemd.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Create a systemd service file (you can save it as /etc/systemd/system/emperor.uw

[Unit]
Description=uWSGI Emperor
After=syslog.target

[Service]
ExecStart=/root/uwsgi/uwsgi --ini /etc/uwsgi/emperor.ini
Expand All @@ -32,7 +31,7 @@ Create a systemd service file (you can save it as /etc/systemd/system/emperor.uw
Restart=always
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
StandardError=journal
NotifyAccess=all

[Install]
Expand Down Expand Up @@ -87,7 +86,7 @@ If you want to allow each vassal to run under different privileges, remove the `
Logging
*******

Using the previous service file all of the Emperor messages go to the syslog. You can avoid it by removing the ``StandardError=syslog`` directive.
Using the previous service file all of the Emperor messages go to the journal. You can avoid it by removing the ``StandardError=journal`` directive.

If you do that, be sure to set a ``--logto`` option in your Emperor configuration, otherwise all of your logs will be lost!

Expand Down Expand Up @@ -174,7 +173,6 @@ app will run under its own user.

[Unit]
Description=%i uWSGI app
After=syslog.target

[Service]
ExecStart=/usr/bin/uwsgi \
Expand All @@ -185,7 +183,7 @@ app will run under its own user.
Restart=on-failure
KillSignal=SIGQUIT
Type=notify
StandardError=syslog
StandardError=journal
NotifyAccess=all

Now, adding a new app to your system is a matter of creating the appropriate
Expand Down