I need to restart a service each time to make it work
by sirlinux from LinuxQuestions.org on (#5CXSC)
Hi
Since I don't have a public static IP I signed up a DDNS service in order to get access to a few service in my LAN server from the Internet. I followed this instruction and it works properly:
https://www.dynu.com/DynamicDNS/IPUpdateClient/Linux
I run:
systemctl status dynuiuc.service
Code:Loaded: loaded (/lib/systemd/system/dynuiuc.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-01-16 14:26:35 CET; 2min 39s agoAlthough the service seems to be working, my IP is not updated automatically at any system startup unless I run the command:
systemctl restart dynuiuc.service
write down my user password in the pop up windows
Then, I run systemctl status dynuiuc.service again, and this time, I can see that my public IP got updated:
Code:gen 16 14:33:27 jack-pc /usr/bin/dynuiuc[4336]: Configuration of /usr/bin/dynuiuc read from file /etc/dynuiuc/dynuiuc.conf
gen 16 14:33:33 black-pc /usr/bin/dynuiuc[4336]: { IPv4 Address: xx.xx.xx.92, IPv6 Address: }What did I fail to do and understand here?
I'd like to make it work and got my Ip update at the system startup. Do I need to set a cronjob or something?
Could you please help me figure it out?
Thanks


Since I don't have a public static IP I signed up a DDNS service in order to get access to a few service in my LAN server from the Internet. I followed this instruction and it works properly:
https://www.dynu.com/DynamicDNS/IPUpdateClient/Linux
I run:
systemctl status dynuiuc.service
Code:Loaded: loaded (/lib/systemd/system/dynuiuc.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-01-16 14:26:35 CET; 2min 39s agoAlthough the service seems to be working, my IP is not updated automatically at any system startup unless I run the command:
systemctl restart dynuiuc.service
write down my user password in the pop up windows
Then, I run systemctl status dynuiuc.service again, and this time, I can see that my public IP got updated:
Code:gen 16 14:33:27 jack-pc /usr/bin/dynuiuc[4336]: Configuration of /usr/bin/dynuiuc read from file /etc/dynuiuc/dynuiuc.conf
gen 16 14:33:33 black-pc /usr/bin/dynuiuc[4336]: { IPv4 Address: xx.xx.xx.92, IPv6 Address: }What did I fail to do and understand here?
I'd like to make it work and got my Ip update at the system startup. Do I need to set a cronjob or something?
Could you please help me figure it out?
Thanks