]> git.pld-linux.org Git - packages/monit.git/commitdiff
fix initscript status exit code auto/ac/monit-5.9-2 auto/th/monit-5.9-2
authorElan Ruusamäe <glen@delfi.ee>
Wed, 29 Oct 2014 15:26:38 +0000 (17:26 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 29 Oct 2014 15:26:38 +0000 (17:26 +0200)
monit.init
monit.spec

index 1792def927739a535420eeec22a994c4bb3a4408..499527648d7ab3f1fdc7fca6741c1cb7d3a1453d 100755 (executable)
@@ -88,8 +88,10 @@ case "$1" in
        ;;
   status)
        status monit
+       RETVAL=$?
+       # monit status is unreliable (always 0). so use rc-scripts status code
        monit -c /etc/monitrc status
-       exit $?
+       exit $RETVAL
        ;;
   *)
        msg_usage "$0 {start|stop|restart|reload|force-reload|checkconfig|status}"
index d8d46dc4d0336bc00fc03b387872e7542538114e..4d63f171ad5eff4b99651558e33e05da7c13d86d 100644 (file)
@@ -2,7 +2,7 @@ Summary:        Process monitor and restart utility
 Summary(pl.UTF-8):     Narzędzie do monitorowania procesów i ich restartowania
 Name:          monit
 Version:       5.9
-Release:       1
+Release:       2
 License:       AGPL v3
 Group:         Daemons
 Source0:       http://mmonit.com/monit/dist/%{name}-%{version}.tar.gz
This page took 0.105967 seconds and 4 git commands to generate.