Skip to content

Instantly share code, notes, and snippets.

@skyhisi
Created November 14, 2019 10:23
Show Gist options
  • Save skyhisi/17b859ccf794add3324995920176171f to your computer and use it in GitHub Desktop.
Save skyhisi/17b859ccf794add3324995920176171f to your computer and use it in GitHub Desktop.
Run fping as a systemd service, get network stats and keeps powerline/homeplug network adapters connected
[Unit]
Description=FPing LAN
After=network.target auditd.service time-sync.target
[Service]
ExecStart=/usr/bin/fping \
--loop --period=1000 --timeout=500 --squiet=1800 \
192.168.0.1 \
192.168.0.2
KillMode=process
KillSignal=SIGINT
Restart=on-failure
Type=exec
SyslogIdentifier=fping-lan
ProtectSystem=strict
ProtectHome=yes
PrivateDevices=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment