From 4fce720bd874babc72cc0bece6f7626294db5e37 Mon Sep 17 00:00:00 2001 From: Pig Monkey Date: Tue, 25 Aug 2020 15:57:18 -0700 Subject: [PATCH] systemd stdout/stderr syslog output is obsolete --- roles/cryptshot/templates/cryptshot.service.j2 | 4 ++-- roles/git-annex/files/git-annex.service | 4 ++-- roles/laptop/templates/lowbatt.service.j2 | 4 ++-- roles/mail/templates/mailsync.service.j2 | 4 ++-- roles/pim/files/etesync-dav.service.j2 | 4 ++-- roles/tarsnap/templates/tarsnapper.service.j2 | 4 ++-- roles/units/templates/units_cur.service.j2 | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/roles/cryptshot/templates/cryptshot.service.j2 b/roles/cryptshot/templates/cryptshot.service.j2 index bf44669..b04fc7e 100644 --- a/roles/cryptshot/templates/cryptshot.service.j2 +++ b/roles/cryptshot/templates/cryptshot.service.j2 @@ -3,5 +3,5 @@ Description=Cryptshot Backup Service [Service] Type=oneshot ExecStart=/usr/local/bin/cryptshot-execute -StandardOutput=syslog -StandardError=syslog +StandardOutput=journal +StandardError=journal diff --git a/roles/git-annex/files/git-annex.service b/roles/git-annex/files/git-annex.service index aa6d0c4..6fecb3c 100644 --- a/roles/git-annex/files/git-annex.service +++ b/roles/git-annex/files/git-annex.service @@ -4,8 +4,8 @@ Description=Git Annex Assistant Service [Service] Type=simple ExecStart=/usr/bin/git-annex assistant --foreground --autostart -StandardOutput=syslog -StandardError=syslog +StandardOutput=journal +StandardError=journal [Install] WantedBy=multi-user.target diff --git a/roles/laptop/templates/lowbatt.service.j2 b/roles/laptop/templates/lowbatt.service.j2 index 4dadf78..8623ee9 100644 --- a/roles/laptop/templates/lowbatt.service.j2 +++ b/roles/laptop/templates/lowbatt.service.j2 @@ -5,8 +5,8 @@ ConditionACPower=false [Service] Type=oneshot ExecStart=/usr/local/bin/lowbatt -u {{ user.name }} -StandardOutput=syslog -StandardError=syslog +StandardOutput=journal +StandardError=journal Environment=DISPLAY=:0 [Install] diff --git a/roles/mail/templates/mailsync.service.j2 b/roles/mail/templates/mailsync.service.j2 index e6337c8..6c4b52f 100644 --- a/roles/mail/templates/mailsync.service.j2 +++ b/roles/mail/templates/mailsync.service.j2 @@ -5,6 +5,6 @@ After=network.target [Service] Type=oneshot ExecStart=/usr/local/bin/mailsync -StandardOutput=syslog -StandardError=syslog +StandardOutput=journal +StandardError=journal Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/{{ user.uid }}/bus diff --git a/roles/pim/files/etesync-dav.service.j2 b/roles/pim/files/etesync-dav.service.j2 index 8cf9ff2..0c2c8b0 100644 --- a/roles/pim/files/etesync-dav.service.j2 +++ b/roles/pim/files/etesync-dav.service.j2 @@ -6,8 +6,8 @@ After=network.target [Service] Type=simple ExecStart=/usr/bin/etesync-dav -StandardOutput=syslog -StandardError=syslog +StandardOutput=journal +StandardError=journal [Install] WantedBy=multi-user.target diff --git a/roles/tarsnap/templates/tarsnapper.service.j2 b/roles/tarsnap/templates/tarsnapper.service.j2 index 3f4fe0f..cc95f69 100644 --- a/roles/tarsnap/templates/tarsnapper.service.j2 +++ b/roles/tarsnap/templates/tarsnapper.service.j2 @@ -6,5 +6,5 @@ After=network.target [Service] Type=oneshot ExecStart=/usr/local/bin/backitup {% if tarsnapper.ac_only %}-a {% endif %}-p {{ tarsnapper.period }} -l /usr/local/etc/tarsnapper.lastrun -b "/usr/bin/tarsnapper -c /usr/local/etc/tarsnapper.conf make" -StandardOutput=syslog -StandardError=syslog +StandardOutput=journal +StandardError=journal diff --git a/roles/units/templates/units_cur.service.j2 b/roles/units/templates/units_cur.service.j2 index 3c0b2d8..eef9243 100644 --- a/roles/units/templates/units_cur.service.j2 +++ b/roles/units/templates/units_cur.service.j2 @@ -5,6 +5,6 @@ After=network.target [Service] Type=oneshot -StandardOutput=syslog -StandardError=syslog +StandardOutput=journal +StandardError=journal ExecStart=/usr/bin/units_cur{% if 'args' in units %} {{ units.args }}{% endif %}