This commit is contained in:
2019-01-21 10:36:19 +01:00
parent 91eb1a3de4
commit 8ee60e1fe6
4 changed files with 110 additions and 40 deletions

View File

@@ -0,0 +1,6 @@
[Unit]
Description=Ping Omikron Unit
[Service]
Type=simple
ExecStart=/PFAD/ZU/ping-omikron.sh

View File

@@ -0,0 +1,3 @@
#!/bin/bash
date &>> /var/log/ping-omikron.log
ping -c 3 omikron.net &>> /var/log/ping-omikron.log

View File

@@ -0,0 +1,10 @@
[Unit]
Description=Ping Omikron Timer
[Timer]
OnActiveSec=30s
OnUnitActiveSec=5m
Persistent=true
[Install]
WantedBy=basic.target