From 55a640cbf70c8e8817246ede7e230d2c5138f338 Mon Sep 17 00:00:00 2001 From: Bruno Fontes Date: Fri, 5 Mar 2021 12:23:27 -0300 Subject: [PATCH] Services logging errors --- Services/after-wakeup.service | 1 + Services/backup-contabo.service | 1 + Services/backup-joplin.service | 1 + Services/before-sleep.service | 1 + Services/logErrors@.service | 0 Services/minecraft-hour.service | 1 + Services/minecraft-stop.service | 1 + Services/roothints.service | 1 + Services/testDNS.service | 1 + Services/updateRootHints.service | 1 + 10 files changed, 9 insertions(+) mode change 100644 => 100755 Services/after-wakeup.service mode change 100644 => 100755 Services/backup-contabo.service mode change 100644 => 100755 Services/before-sleep.service mode change 100644 => 100755 Services/logErrors@.service mode change 100644 => 100755 Services/roothints.service mode change 100644 => 100755 Services/testDNS.service mode change 100644 => 100755 Services/updateRootHints.service diff --git a/Services/after-wakeup.service b/Services/after-wakeup.service old mode 100644 new mode 100755 index 9fdb467..53b1711 --- a/Services/after-wakeup.service +++ b/Services/after-wakeup.service @@ -1,6 +1,7 @@ [Unit] Description=Bruno Fontes script after wakeup After=suspend.target +OnFailure=logErrors@%n.service [Service] Type=simple diff --git a/Services/backup-contabo.service b/Services/backup-contabo.service old mode 100644 new mode 100755 index 5db7fb2..e5b714f --- a/Services/backup-contabo.service +++ b/Services/backup-contabo.service @@ -1,5 +1,6 @@ [Unit] Description=Backup contabo daily +OnFailure=logErrors@%n.service [Service] ExecStart=/home/bruno/Backups/Contabo/backup-contabo.sh diff --git a/Services/backup-joplin.service b/Services/backup-joplin.service index 98ba1b3..7a7634a 100755 --- a/Services/backup-joplin.service +++ b/Services/backup-joplin.service @@ -1,5 +1,6 @@ [Unit] Description=Backup joplin weekly +OnFailure=logErrors@%n.service [Service] User=bruno diff --git a/Services/before-sleep.service b/Services/before-sleep.service old mode 100644 new mode 100755 index 272fee2..d713ad2 --- a/Services/before-sleep.service +++ b/Services/before-sleep.service @@ -1,6 +1,7 @@ [Unit] Description=Bruno Fontes script before sleep Before=sleep.target +OnFailure=logErrors@%n.service [Service] Type=oneshot diff --git a/Services/logErrors@.service b/Services/logErrors@.service old mode 100644 new mode 100755 diff --git a/Services/minecraft-hour.service b/Services/minecraft-hour.service index 62f5a8b..d11612b 100755 --- a/Services/minecraft-hour.service +++ b/Services/minecraft-hour.service @@ -1,5 +1,6 @@ [Unit] Description=Minecraft Informa a Hora Certa +OnFailure=logErrors@%n.service [Service] User=bruno diff --git a/Services/minecraft-stop.service b/Services/minecraft-stop.service index 97f71aa..c75902c 100755 --- a/Services/minecraft-stop.service +++ b/Services/minecraft-stop.service @@ -1,5 +1,6 @@ [Unit] Description=Properly shutdown Minecraft before PC shutdown +OnFailure=logErrors@%n.service [Service] Type=oneshot diff --git a/Services/roothints.service b/Services/roothints.service old mode 100644 new mode 100755 index c6d87af..f6223c9 --- a/Services/roothints.service +++ b/Services/roothints.service @@ -1,6 +1,7 @@ [Unit] Description=Update root hints for unbound After=network.target +OnFailure=logErrors@%n.service [Service] ExecStart=/usr/bin/curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache diff --git a/Services/testDNS.service b/Services/testDNS.service old mode 100644 new mode 100755 index 9e1accf..d707c6f --- a/Services/testDNS.service +++ b/Services/testDNS.service @@ -2,6 +2,7 @@ Description=Test and fix DNS update with wrong time Wants=network-online.target After=network-online.target +OnFailure=logErrors@%n.service [Service] Type=oneshot diff --git a/Services/updateRootHints.service b/Services/updateRootHints.service old mode 100644 new mode 100755 index 10f0902..b4cd4f2 --- a/Services/updateRootHints.service +++ b/Services/updateRootHints.service @@ -1,5 +1,6 @@ [Unit] Description=Run update DNS root hints montly +OnFailure=logErrors@%n.service [Service] Type=oneshot