[Dnsmasq-discuss] dnsmasq keepalive or RasberryPi?
Hey there. I am looking for a linux command to auto-restart dnsmasq if it ever fails. It seems that my Raspberry Pi version fails from time to time. Looked in the archives but was not able to find any documentation on such a command. Currently I have to use the service dnsmasq restart command but really want something to do this automatically if it ever fails. Thx ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] dnsmasq keepalive or RasberryPi?
20. 8. 19. 오후 10:06에 Michael Walter 이(가) 쓴 글: service dnsmasq restart command but really want something to do this automatically if it ever fails. ha, my fault! Might this works, but didn't test it. while true; do { pidof dnsmasq || { service dnsmasq restart; }; sleep 1; } done ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] dnsmasq keepalive or RasberryPi?
20. 8. 19. 오후 10:06에 Michael Walter 이(가) 쓴 글: Hey there. I am looking for a linux command to auto-restart dnsmasq if it ever fails. It seems that my Raspberry Pi version fails from time to time. Looked in the archives but was not able to find any documentation on such a command. Currently I have to use the I don't know what kind of distro you are using on raspberry pi, but here is an example for you, root user could do this, '/etc/init.d/dnsmasq restart' on openwrt. So the first step you should do is to figure out how the system boots and run all necessary programs, then use commands like this, for example while true; do { pidof dnsmasq || { /etc/init.d/dnsmasq restart; }; sleep 1; } done Cheers service dnsmasq restart command but really want something to do this automatically if it ever fails. Thx ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] dnsmasq keepalive or RasberryPi?
Am Wed, 19 Aug 2020 07:06:31 -0600 schrieb Michael Walter : > service dnsmasq restart See systemd.service(5) "Restart=" for details. Olaf pgpawE8qRQKah.pgp Description: Digitale Signatur von OpenPGP ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Re: [Dnsmasq-discuss] dnsmasq keepalive or RasberryPi?
Restart=on-failure ? Or better yet, fix the actual issue :) > Op 19 aug. 2020 om 20:37 heeft Olaf Hering het volgende > geschreven: > > Am Wed, 19 Aug 2020 07:06:31 -0600 > schrieb Michael Walter : > >> service dnsmasq restart > > See systemd.service(5) "Restart=" for details. > > Olaf > ___ > Dnsmasq-discuss mailing list > Dnsmasq-discuss@lists.thekelleys.org.uk > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss ___ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss