Skip to content

Instantly share code, notes, and snippets.

@Stadicus
Last active February 12, 2018 22:50
Show Gist options
  • Save Stadicus/1e1d3800f33559940d6a388a95b5a2d8 to your computer and use it in GitHub Desktop.
Save Stadicus/1e1d3800f33559940d6a388a95b5a2d8 to your computer and use it in GitHub Desktop.
systemd for getpubip.sh
[Unit]
Description=getpublicip.sh: get public ip address from ipinfo.io
After=network.target
[Service]
User=root
Group=root
Type=simple
ExecStart=/usr/local/bin/getpublicip.sh
Restart=always
RestartSec=600
TimeoutSec=10
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment