Services logging errors

This commit is contained in:
Bruno F. Fontes 2021-03-05 12:23:27 -03:00
parent 2b36d7c555
commit 55a640cbf7
Signed by: brunofontes
GPG Key ID: EE3447CE80048495
10 changed files with 9 additions and 0 deletions

1
Services/after-wakeup.service Normal file → Executable file
View File

@ -1,6 +1,7 @@
[Unit]
Description=Bruno Fontes script after wakeup
After=suspend.target
OnFailure=logErrors@%n.service
[Service]
Type=simple

1
Services/backup-contabo.service Normal file → Executable file
View File

@ -1,5 +1,6 @@
[Unit]
Description=Backup contabo daily
OnFailure=logErrors@%n.service
[Service]
ExecStart=/home/bruno/Backups/Contabo/backup-contabo.sh

View File

@ -1,5 +1,6 @@
[Unit]
Description=Backup joplin weekly
OnFailure=logErrors@%n.service
[Service]
User=bruno

1
Services/before-sleep.service Normal file → Executable file
View File

@ -1,6 +1,7 @@
[Unit]
Description=Bruno Fontes script before sleep
Before=sleep.target
OnFailure=logErrors@%n.service
[Service]
Type=oneshot

0
Services/logErrors@.service Normal file → Executable file
View File

View File

@ -1,5 +1,6 @@
[Unit]
Description=Minecraft Informa a Hora Certa
OnFailure=logErrors@%n.service
[Service]
User=bruno

View File

@ -1,5 +1,6 @@
[Unit]
Description=Properly shutdown Minecraft before PC shutdown
OnFailure=logErrors@%n.service
[Service]
Type=oneshot

1
Services/roothints.service Normal file → Executable file
View File

@ -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

1
Services/testDNS.service Normal file → Executable file
View File

@ -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

1
Services/updateRootHints.service Normal file → Executable file
View File

@ -1,5 +1,6 @@
[Unit]
Description=Run update DNS root hints montly
OnFailure=logErrors@%n.service
[Service]
Type=oneshot