Skip to content

Instantly share code, notes, and snippets.

@fmoledina
Forked from Stadicus/getpublicip.service
Last active February 5, 2018 16:44
Show Gist options
  • Save fmoledina/f6b0c977821e413129a350f3898db91d to your computer and use it in GitHub Desktop.
Save fmoledina/f6b0c977821e413129a350f3898db91d to your computer and use it in GitHub Desktop.
systemd for getpubip.sh
[Unit]
Description=getpubip.sh: get public ip address from ipinfo.io
After=network.target
[Service]
Type=oneshot
ExecStart=/opt/pubip/getpubip.sh
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment