#AskFedi: is there a script / way to automate the restart of dnsmasq every 24 hours… on a VPS that runs on Debian 12?

(Funny how this would have sounded like a foreign language to me a mere year ago) 😆

Update: THANK YOU for the cronjob recommendation. Now looking for a tutorial that’s easy to follow for a newbie like me 😅

I really appreciate all the advice, YOU’RE THE BEST 🏆

#MySoCalledSudoLife

@elena
crontab -e and add 5 2 * * * /usr/bin/systemctl restart dnsmasq (or whatever the service for dnsmasq would be called, you can test the command in the shell beforehand) should do it. That would restart it at 2:05 every day.

Though why would you need that, that sounds like a deeper issue at work :D