Skip to content

Instantly share code, notes, and snippets.

@JohnPreston
Created March 8, 2017 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnPreston/36c24ecc545d6b3ecd402c5e7b1c6163 to your computer and use it in GitHub Desktop.
Save JohnPreston/36c24ecc545d6b3ecd402c5e7b1c6163 to your computer and use it in GitHub Desktop.
Systemd call to script to add an IP
[Unit]
Description=Add Secondary IP
After=network-service.target network.target
Wants=network.target
[Service]
Type=forking
ExecStart=/etc/addip.sh 10.163.59.174/21
[Install]
WantedBy=multi-user.target
RemainAfterExit=yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment