jacklul / pihole-updatelists

Update Pi-hole's lists from remote sources easily
MIT License
1.39k stars 81 forks source link

Modification of pihole-FTL.service file #153

Closed cmonty14 closed 1 month ago

cmonty14 commented 1 month ago

Hi, according to your instructions one should disable default gravity update schedule.

However I'm not sure if it makes sense to modify the default pihole-FTL.service file as this change could be overwritten by a new deployment of pihole. In addition, this service file contains this

ExecStartPre=/opt/pihole/pihole-FTL-prestart.sh

already that is another bash script executing different commands.

Would it makes sense to use a similar approach to modify cronjob /etc/cron.d/pihole?

jacklul commented 1 month ago

systemctl edit pihole-FTL.service creates override file which is merged with the main one (you gotta use --full switch to edit the main one, which you usually don't want to!). You can have multiple ExecStartPre, per systemd's documentation.

I want to stay aways as much as possible from modifying Pi-hole files to not create issues.