Redirect stderr to systemd journal (#86)

Errors were not written to the journal as systemd-cat was only reading
stdin. Now, errors printed by restic are shown in the journal.
This commit is contained in:
Gerard Bosch
2022-02-16 13:51:28 +01:00
committed by GitHub
parent d5a141fc9a
commit 38b3243b4c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -10,4 +10,4 @@ Conflicts=restic-backup.service
Type=simple
Nice=10
# `systemd-cat` allows showing the restic output to the systemd journal
ExecStart=bash -c 'source $INSTALL_PREFIX/etc/restic/%I.env.sh && $INSTALL_PREFIX/bin/restic_check.sh | systemd-cat'
ExecStart=bash -c 'source $INSTALL_PREFIX/etc/restic/%I.env.sh && $INSTALL_PREFIX/bin/restic_check.sh 2>&1 | systemd-cat'