]> git.pld-linux.org Git - packages/monit.git/commitdiff
service start: check also pid AC-branch auto/ac/monit-5.9-4 auto/th/monit-5.9-4
authorElan Ruusamäe <glen@delfi.ee>
Wed, 18 Nov 2015 14:07:08 +0000 (16:07 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 18 Nov 2015 14:07:27 +0000 (16:07 +0200)
as currently "status" says it's down
but "start" does not really start it:

 # service monit status
 daemon monit dead but subsys (monit) locked
 Status not available -- the monit daemon is not running

 # service monit start
 monit service is already running.

monit.init
monit.spec

index 499527648d7ab3f1fdc7fca6741c1cb7d3a1453d..b4a7cdd6dbb281cf2cbd69b8cc058362c9f037ec 100755 (executable)
@@ -24,7 +24,7 @@ checkconfig() {
 
 start() {
        # Check if the service is already running?
-       if [ -f /var/lock/subsys/monit ]; then
+       if [ -f /var/lock/subsys/monit ] && status monit >/dev/null; then
                msg_already_running monit
                return
        fi
index 95b2d40b7b539181ac3a54a2cdbb1d8c9eee37b7..02b6f85bf7af9da8e0091493ac038eff91fd6cba 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:       3
+Release:       4
 License:       AGPL v3
 Group:         Daemons
 Source0:       http://mmonit.com/monit/dist/%{name}-%{version}.tar.gz
This page took 0.071717 seconds and 4 git commands to generate.