williams2 wrote: ↑Wed Oct 26, 2022 5:40 amIt would be added as a service most likely.
If you are referring to
iptables-restore
it's not a daemon, it just runs for a few milliseconds and exits.Puppy has
/etc/init.d/
and/etc/rc0.d
and/etc/rc1.d
and/etc/rc2.d
etc etc
for scripts to start services.If KLV uses systemd that would be more complicated.
Actually, systemd specifically provides a one-shot service type just for this type of event really:
https://gist.github.com/drmalex07/d006f12914b21198ee43
https://www.redhat.com/sysadmin/systemd-oneshot-service
https://trstringer.com/simple-vs-onesho ... d-service/
Unfortunately, it seems runit (as used by Void Linux and thus KLV-Airedale) does not (unless support for that has been added since the following):
https://www.reddit.com/r/voidlinux/comm ... e_at_boot/
https://github.com/void-linux/void-runit/issues/23
cron job suggestion, but whether safe isn't answered: https://superuser.com/questions/1736560 ... tem-reboot
I am wondering if you couldn't simply sv stop service after it is started? Wouldn't that be like a one-shot? I imagine I am missing something with that idea...
https://kchard.github.io/runit-quickstart/