I know this is an old thread but and this is not related to raspberry per se but I spent several days figuring out what is failing and how to solve and I want to share the results in case someone else or me on the future need this information.
Target version: 1.71
Problem: ipUpdate.pl scritp doesn't starts on reboot or close randomly.
Possible cause: setup.pl script is "half cooked", after read the setup.pl, it doesn't install any of the services on the init folder. The admin has to install them manually.
How I have fixed it from the beginning:
Code: Select all
wget http://downloads.dnsexit.com/ipUpdate-1.71.tar.gz
tar xzvf ipUpdate-1.71.tar.gz
cd ipUpdate/dnsexit/
sudo su
./setup.pl
- Insert settings for you domains/account
Code: Select all
cp init/ipUpdate-DNSEXIT.service /etc/systemd/system/ipUpdate.service
nano /etc/systemd/system/ipUpdate.service
- Edit this file to wait until network is online. Add a restart on failure function:
Code: Select all
[Unit]
Description=DNSEXIT-Dynamic-IP-Updater
Wants=network-online.target
After=syslog.target network.target network-online.target
[Service]
PIDFile=/var/run/ipUpdate.pid
ExecStart=/usr/sbin/ipUpdate.pl daemon
Restart=on-failure
StartLimitBurst=2
StartLimitInterval=30
[Install]
WantedBy=multi-user.target
Code: Select all
systemctl enable ipUpdate
sudo update-rc.d ipUpdate enable
systemctl daemon-reload
cp ipUpdate.service /etc/init.d/
update-rc.d ipUpdate deafults
Conclusions: The setup.pl script is only ready to setup ipUpdate conf and run it manually. It is not ready to install it as service, start at boot, or restart on failure. It is responsability of the sysadmin to select the better init script for his distribution and adapt it how he likes.