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] [Unit]
Description=Bruno Fontes script after wakeup Description=Bruno Fontes script after wakeup
After=suspend.target After=suspend.target
OnFailure=logErrors@%n.service
[Service] [Service]
Type=simple Type=simple

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

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

View File

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

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

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

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

View File

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

View File

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

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

@ -1,6 +1,7 @@
[Unit] [Unit]
Description=Update root hints for unbound Description=Update root hints for unbound
After=network.target After=network.target
OnFailure=logErrors@%n.service
[Service] [Service]
ExecStart=/usr/bin/curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache 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 Description=Test and fix DNS update with wrong time
Wants=network-online.target Wants=network-online.target
After=network-online.target After=network-online.target
OnFailure=logErrors@%n.service
[Service] [Service]
Type=oneshot Type=oneshot

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

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