Created
November 14, 2019 10:23
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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