When I ran service pi-hole FTL restart
It takes around 10 seconds to kill all remaning process and restart
It also takes some seconds on my system. But is it a problem? What's wrong with gracefully shutdown running processes, to give processes some time to shutdown?
If I use killall pi-hole FTL
I hope it can kill all process immediately
That does not appear unusual. Open files must be closed, data written to long term database, then re-reading configuration files, loading memory and recompiling regex filters.
This is not what you should expect. The command you mentioned asks the process to terminate. In FTL's case this includes writing all queries into the long-term database that have not yet been stored there.
If you'd call killall -9 pihole-FTL
this would not ask the process to shutdown but really immediately kill the process. This will cause some data to get lost.
@jfb is perfectly right. The majority of the time used by the restart
process will be spent when starting, not stopping.
So for my use case, my config
MAXDBDAYS=0
#DBINTERVAL=1.0
BLOCKINGMODE=NXDOMAIN
MAXLOGAGE=12.0
PRIVACYLEVEL=0
I dont have to worry about data lost and database, I hope I can restart the process ASAP
When you already disabled the database, shutdown should be fairly immediate and the only cause of a delay is the initial loading of the domains to be blocked. This will obviously be longer the more domains you have and the less performant the device you're running Pi-hole on is.
It works perfectly for my scenario.. Thanks ~~ Love it this cmd killall -9 pihole-FTL
why? I dont have any data or logs needs to record or save?
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.