Skip to content

Instantly share code, notes, and snippets.

@mosquito
Created December 21, 2015 22:47
Show Gist options
  • Select an option

  • Save mosquito/5004e9d20b002165df19 to your computer and use it in GitHub Desktop.

Select an option

Save mosquito/5004e9d20b002165df19 to your computer and use it in GitHub Desktop.
Systemd ping daemon
[Unit]
Description=Pingd broadcast service
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=5
WorkingDirectory=/tmp
StartLimitInterval=0
StartLimitBurst=99999999999999
ExecStart=/bin/ping -q -s 1024 -t 1 -c 65534 -i 5 -b 255.255.255.255
User=root
Group=root
[Install]
WantedBy=multi-user.target
[Unit]
Description=Pingd service %I
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=5
WorkingDirectory=/tmp
StartLimitInterval=0
StartLimitBurst=99999999999999
ExecStart=/bin/ping -q -s 1024 -t 4 -c 65534 %i
User=root
Group=root
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment