Closed Gil80 closed 8 months ago
I expected these lines to be uncommented - so now I'm not sure if the update script will run.
Read carefully what the lines starting with ###
say - you need to add your modification between them. The lines at the bottom show the original file for reference only.
p.s. - running
pihole-updatelists -v
says it needs root privileges. Is that OK? or do I need to configure somewhere for it to run withsudo
?
Running with sudo equals running as root.
Read carefully what the lines starting with ### say - you need to add your modification between them. The lines at the bottom show the original file for reference only.
So just to be clear that I understand - if I don't want to modify the schedule, I should leave it as it is with the # (comment)?
Running with sudo equals running as root.
I know, I'm trying to understand if the script will run automatically without issues, because if I need to provide root privileges when running manually, I expect the script to fail when it run automatically, isn't it?
So just to be clear that I understand - if I don't want to modify the schedule, I should leave it as it is with the # (comment)?
In this case you want to leave everything as it is - you shouldn't be even executing sudo systemctl edit pihole-updatelists.timer
in the first place.
I know, I'm trying to understand if the script will run automatically without issues, because if I need to provide root privileges when running manually, I expect the script to fail when it run automatically, isn't it?
No, scheduled run already runs as root.
Thank you. Is there a log I can monitor to verify it actually ran automatically?
These should work:
systemctl status pihole-updatelists.timer
systemctl status pihole-updatelists.service
Looks ok - isn't it? Thanks for the help
Yes, the timer is waiting to be executed
Reading about
sudo systemctl edit pihole-updatelists.timer
I expected these lines to be uncommented - so now I'm not sure if the update script will run.That's my current
pihole-updatelist.conf
file looks like:p.s. - running
pihole-updatelists -v
says it needs root privileges. Is that OK? or do I need to configure somewhere for it to run withsudo
?