olsrd: init: verbose logging if daemon-startup fails. till now everything is quiet...
authorBastian Bittorf <bittorf@bluebottle.com>
Fri, 19 Apr 2013 10:36:03 +0000 (12:36 +0200)
committerBastian Bittorf <bittorf@bluebottle.com>
Fri, 19 Apr 2013 10:36:03 +0000 (12:36 +0200)
olsrd/files/olsrd.init

index 7282bfe..e025ff9 100644 (file)
@@ -817,8 +817,12 @@ start() {
                        return 1
                else
                        service_start /usr/sbin/olsrd -f "$OLSRD_CONFIG_FILE" -nofork
+                       service_check /usr/sbin/olsrd || {
+                               log "startup-error: check via: '/usr/sbin/olsrd -f \"$OLSRD_CONFIG_FILE\" -nofork'"
+                       }
                fi
        fi
+
        olsrd_setup_smartgw_rules
 }