update-public-ip/systemd/start

12 lines
273 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
CONF=$1
if [ -z "$CONF" ];
then
echo missing configuration argument, aborting
exit 1
fi
sudo systemctl daemon-reload
sudo systemctl stop update-public-ip@$CONF
sudo systemctl start update-public-ip@$CONF
sudo systemctl status update-public-ip@$CONF