olsrd: avoid fake startup-error messages
authorAlessio Caiazza <nolith@abisso.org>
Wed, 28 May 2014 15:02:40 +0000 (17:02 +0200)
committerAlessio Caiazza <nolith@abisso.org>
Wed, 28 May 2014 15:02:40 +0000 (17:02 +0200)
Calling service_check too early may result in a false reading

olsrd/files/olsrd.init

index 4da101cad239cfda4eb59f5494119df14712d879..5864756465a9b2a465650af8698e8df86430e470 100644 (file)
@@ -799,6 +799,7 @@ start() {
                return 1
        else
                service_start /usr/sbin/olsrd -f "$OLSRD_CONFIG_FILE" -nofork
+               sleep 1
                service_check /usr/sbin/olsrd || {
                        log "startup-error: check via: '/usr/sbin/olsrd -f \"$OLSRD_CONFIG_FILE\" -nofork'"
                }