I have a dynamic DNS script as follows:
#!/bin/bash
curl -kL# "http://example.com/updatedns.php"
echo $? >> /var/log/ddns
...saved to /usr/local/bin/ddns. Obviously the URL above isn't the one I actually use, but the URL is meant to set the A record of my domain to the IP of the machine that requested it. I have confirmed it has been chmodded and runs from the command line, however, Upstart, which has been set up with the following script:
start on network started
exec /usr/local/bin/ddns
...doesn't execute it when the network starts (which I'm assuming is when the machine is booted or I connect the network cord).
I googled start on network started and found some results saying that this stanza doesn't actually get started properly, but still gets triggered, however I'm not sure if that's related or not. Am I doing something wrong? I'm running Ubuntu Server 11.10.