From 92d7524ff0a3261d69b2f5f9f0d9fc62aaecd80a Mon Sep 17 00:00:00 2001 From: Kerstin Humm Date: Fri, 1 Oct 2021 15:36:54 +0200 Subject: [PATCH 1/2] systemd: use StandardError=journal instead of the deprecated StandardError=syslog See: https://github.com/systemd/systemd/blob/main/NEWS#L1825 --- Systemd.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Systemd.rst b/Systemd.rst index 6ee43598..e57fe195 100644 --- a/Systemd.rst +++ b/Systemd.rst @@ -32,7 +32,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] @@ -87,7 +87,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! @@ -185,7 +185,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 From d5c2f654d0b9b6cbfdcba042f0e2e60b692c2a17 Mon Sep 17 00:00:00 2001 From: Kerstin Humm Date: Fri, 1 Oct 2021 15:39:29 +0200 Subject: [PATCH 2/2] systemd: Drop syslog.target, as it doesn't exist anymore See: https://github.com/systemd/systemd/blob/main/NEWS#L11277 --- Systemd.rst | 2 -- 1 file changed, 2 deletions(-) diff --git a/Systemd.rst b/Systemd.rst index e57fe195..af4df188 100644 --- a/Systemd.rst +++ b/Systemd.rst @@ -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 @@ -174,7 +173,6 @@ app will run under its own user. [Unit] Description=%i uWSGI app - After=syslog.target [Service] ExecStart=/usr/bin/uwsgi \