Use last PID in case pidof returns multiple PIDs for pihole-FTL

Signed-off-by: DL6ER <dl6er@dl6er.de>
pull/2873/head^2
DL6ER 5 years ago committed by Dan Schaper
parent da398c3d9c
commit 484f618685
No known key found for this signature in database
GPG Key ID: B4FF14C01CC08DC0

@ -13,7 +13,7 @@ FTLUSER=pihole
PIDFILE=/var/run/pihole-FTL.pid
get_pid() {
pidof "pihole-FTL"
pidof "pihole-FTL" | awk '{print $(NF)}'
}
is_running() {

Loading…
Cancel
Save