Changeset 30164


Ignore:
Timestamp:
2012-02-05T04:16:49+01:00 (4 years ago)
Author:
jow
Message:

[packages_10.03.2] monit: merge r28887

Location:
branches/packages_10.03.2/admin/monit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/packages_10.03.2/admin/monit/Makefile

    r26939 r30164  
    1010PKG_NAME:=monit 
    1111PKG_VERSION:=5.2.5 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • branches/packages_10.03.2/admin/monit/files/monit.init

    r15247 r30164  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33 
    44START=60 
    5 BIN=monit 
    6 DEFAULT=/etc/default/$BIN 
    7 RUN_D=/var/run 
    8 PID_F=$RUN_D/$BIN.pid 
     5 
     6SERVICE_USE_PID=1 
    97 
    108start() { 
    11         [ -f $DEFAULT ] && . $DEFAULT 
    12         mkdir -p $RUN_D 
    13         $BIN $OPTIONS 
     9        [ -f /etc/monitrc ] || return 1 
     10        [ "$(stat -c "%a" /etc/monitrc)" = "0700" ] || chmod 0700 /etc/monitrc 
     11        service_start /usr/bin/monit -d 60 
    1412} 
    1513 
    1614stop() { 
    17         [ -f $PID_F ] && kill $(cat $PID_F) 
     15        service_stop /usr/bin/monit 
    1816} 
    19  
Note: See TracChangeset for help on using the changeset viewer.