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

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2019-05-30 15:26:27 +02:00
parent ca2ea388b7
commit f6213d4f4d
No known key found for this signature in database
GPG Key ID: FB60471F0575164A
1 changed files with 1 additions and 1 deletions

View File

@ -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() {