浏览代码

mosquitto: Use mosquitto.init for daemon init

Config file specification is missing in start) case. It is present already in restart) case.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
(cherry picked from commit 257ea010b716073acbe6866f4c3968b4962fdc37)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Mike Krupicka 5 年之前
父节点
当前提交
878e450a94
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      meta-networking/recipes-connectivity/mosquitto/files/mosquitto.init

+ 1 - 1
meta-networking/recipes-connectivity/mosquitto/files/mosquitto.init

@@ -38,7 +38,7 @@ export PATH="${PATH:+$PATH:}@SBINDIR@:@BASE_SBINDIR@"
 case "$1" in
     start)
         echo "Starting Mosquitto message broker" "mosquitto"
-        if start-stop-daemon --start --quiet --oknodo --background  --make-pidfile --pidfile ${PIDFILE} --exec ${DAEMON} ; then
+        if start-stop-daemon --start --quiet --oknodo --background --make-pidfile --pidfile ${PIDFILE} --exec ${DAEMON} -- -c @SYSCONFDIR@/mosquitto/mosquitto.conf ; then
             exit 0
         else
             exit 1