update-public-ip/systemd/start
David Kebler ba0f05436c added in systemd unit and scripts
added in APP_INSTANCE for custom start includine debug
first basic working version that has been deployed
2020-10-13 08:30:34 -07:00

11 lines
273 B
Bash
Executable file

#!/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