Browse Source

Update Systemd files: remove network requirement, reduce timer interval, other minor changes

master
Pekka Helenius 4 years ago
parent
commit
759011ba62
2 changed files with 3 additions and 5 deletions
  1. +1
    -2
      wanchecker.service
  2. +2
    -3
      wanchecker.timer

+ 1
- 2
wanchecker.service View File

@ -1,8 +1,7 @@
# Should be placed to /usr/lib/systemd/system/ # Should be placed to /usr/lib/systemd/system/
[Unit] [Unit]
Description=WAN IPv4 checker & email sender for dynamic IPv4 server environments
After=network-online.target
Description=WAN IPv4 checker & email sender for dynamic IPv4 environments
[Service] [Service]
User=mail User=mail


+ 2
- 3
wanchecker.timer View File

@ -3,12 +3,11 @@
# https://wiki.archlinux.org/index.php/Systemd/Timers # https://wiki.archlinux.org/index.php/Systemd/Timers
[Unit] [Unit]
Description=Run WAN IP checker in fixed intervals and on boot
Description=Run WAN IP checker service in fixed intervals and on boot
[Timer] [Timer]
OnBootSec=2min OnBootSec=2min
OnUnitActiveSec=20min
Persistent=true
OnUnitActiveSec=15min
[Install] [Install]
WantedBy=timers.target WantedBy=timers.target

Loading…
Cancel
Save