mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
service: Capture stdout/stderr when running as systemd unit
- Avoid duplicate log messages by not logging to console when running as systemd unit. - Retain normal logging when running on the terminal. Tests: - When running as systemd unit, output to stdin/stdout is captured in systemd journal and visible with 'sudo freedombox-logs'. - When running on terminal manually with 'sudo --user plinth ./run --develop' both log messages and stdout/stderr prints() are visible. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
c0d603af07
commit
cc626be728
2 files changed
+7
-2
No files matched your search
@@ -17,8 +17,6 @@ RestartSec=5
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
User=plinth
|
||||
Group=plinth
|
||||
StandardOutput=null
|
||||
StandardError=null
|
||||
NotifyAccess=main
|
||||
# Uploaded files in /var/tmp/ are shared with FreedomBox privileged service by
|
||||
# joining namespaces.
|
||||
|
||||
Reference in new issue
Block a user