Skip to content

Instantly share code, notes, and snippets.

@metzenseifner
Created March 9, 2017 09:26
Show Gist options
  • Save metzenseifner/eeb0032f678078255b807fb8e297c68c to your computer and use it in GitHub Desktop.
Save metzenseifner/eeb0032f678078255b807fb8e297c68c to your computer and use it in GitHub Desktop.
beacon.service
[Unit]
Description=Make my IP known. Send results of $(ip a) to another machine over ssh as a text file prefixed with "beacon-".
After=network.target
[Service]
ExecStart=/bin/sh /usr/local/sbin/beacon.sh
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment