]> granicus.if.org Git - pdns/commitdiff
Sander Hoentjen <sander@hoentjen.eu>:I have a patch that add exit codes to the init...
authorBert Hubert <bert.hubert@netherlabs.nl>
Wed, 3 Oct 2012 12:33:19 +0000 (12:33 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Wed, 3 Oct 2012 12:33:19 +0000 (12:33 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2728 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/pdns.in

index 3fe1a4c4899f90a836f89f5083a69f8272b67ac2..0d9cfa06025b3a9220278aa98ceb28c57899126b 100755 (executable)
@@ -54,6 +54,7 @@ case "$1" in
                        echo $ret
                else
                        echo "not running"
+                       exit 3
                fi 
        ;;      
 
@@ -84,6 +85,9 @@ case "$1" in
                        if $pdns_server --daemon --guardian=yes
                        then
                                echo "started"  
+                       else
+                               echo "starting failed"
+                               exit 1
                        fi
                fi 
        ;;