Skip to content

Commit

Permalink
Start FTL after running gravity completely. Else we end up in a situa…
Browse files Browse the repository at this point in the history
…tion where the database getss stuck in readonly

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
  • Loading branch information
PromoFaux committed Jul 9, 2023
1 parent c89d5d1 commit 5435c9d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/start.sh
Expand Up @@ -64,9 +64,7 @@ fi
rm -f /dev/shm/FTL-* 2> /dev/null
rm -f /run/pihole/FTL.sock

# Start FTL. TODO: We need to either mock the service file or update the pihole script in the main repo to restart FTL if no init system is present
sh /opt/pihole/pihole-FTL-prestart.sh
capsh --user=$DNSMASQ_USER --keep=1 -- -c "/usr/bin/pihole-FTL $FTL_CMD >/dev/null" &


# Start crond for scheduled scripts (logrotate, pihole flush, gravity update etc)
# crond
Expand All @@ -83,6 +81,10 @@ pihole -g

pihole updatechecker

# Start FTL. TODO: We need to either mock the service file or update the pihole script in the main repo to restart FTL if no init system is present
sh /opt/pihole/pihole-FTL-prestart.sh
capsh --user=$DNSMASQ_USER --keep=1 -- -c "/usr/bin/pihole-FTL $FTL_CMD >/dev/null" &

tail -f /var/log/pihole-FTL.log

# Notes on above:
Expand Down

0 comments on commit 5435c9d

Please sign in to comment.