/[monit]/monit/util.c
ViewVC logotype

Diff of /monit/util.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.152 by martinp, Sun Feb 20 00:07:52 2005 UTC revision 1.153 by martinp, Mon Mar 14 22:30:14 2005 UTC
# Line 1605  int Util_evalQExpression(int operator, i Line 1605  int Util_evalQExpression(int operator, i
1605  }  }
1606    
1607    
1608    /*
1609     * This will disable service monitoring in the case that it is enabled
1610     * @param s A Service_T object
1611     */
1612    void Util_monitorUnset(Service_T s) {
1613    
1614      ASSERT(s);
1615    
1616      if(s->monitor) {
1617        s->monitor= MONITOR_NOT;
1618        s->nstart= 0;
1619        s->ncycle= 0;
1620      }
1621      DEBUG("Monitoring disabled -- service %s\n", s->name);
1622    
1623    }
1624    
1625    
1626  /* ----------------------------------------------------------------- Private */  /* ----------------------------------------------------------------- Private */
1627    
1628    

Legend:
Removed from v.1.152  
changed lines
  Added in v.1.153

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26