luci-app-minidlna: fix service check
authorJo-Philipp Wich <jo@mein.io>
Sun, 1 Mar 2020 16:32:23 +0000 (17:32 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sun, 1 Mar 2020 16:33:28 +0000 (17:33 +0100)
The service process was renamed from `minidlna` to `minidlnad`.

Fixes: #3700
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 0d68d0ad7bd2ab036caba973daa85864f8ec81a3)

applications/luci-app-minidlna/luasrc/controller/minidlna.lua

index 9200796476c8fe9e5e1f73dde845845f1302d45b..3420f305e375ff6a5468b9cbc769232c502240f6 100644 (file)
@@ -22,7 +22,7 @@ function minidlna_status()
        local port = tonumber(uci:get_first("minidlna", "minidlna", "port"))
 
        local status = {
-               running = (sys.call("pidof minidlna >/dev/null") == 0),
+               running = (sys.call("pidof minidlnad >/dev/null") == 0),
                audio   = 0,
                video   = 0,
                image   = 0