I asked the same of my ddns client when I’m benind addn’l upstream routers:
root@GL-AX1800:~# cat /etc/rc.local
# Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing.
. /lib/functions/gl_util.sh
remount_ubifs
/usr/lib/ddns/dynamic_dns_updater.sh -S desec_ipv4 start &
exit 0
root@GL-AX1800:~# ps -w | grep ddns
19182 root 1376 S /bin/sh /usr/lib/ddns/dynamic_dns_updater.sh -S desec_ipv4 start
You run the risk of it choking in rc.local
& inadvertently stalling the full boot process. If it’s a true ‘one shot’ as you describe it’ll exit fr the bg processes automatically anyways.
It’s a workaround not a solution. 4 days ago: