[packages] monit: fix init script
git-svn-id: svn://svn.openwrt.org/openwrt/packages@36484 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
37116eddba
commit
c5a96ca3fd
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=monit
|
PKG_NAME:=monit
|
||||||
PKG_VERSION:=5.5
|
PKG_VERSION:=5.5
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=2
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=http://mmonit.com/monit/dist
|
PKG_SOURCE_URL:=http://mmonit.com/monit/dist
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
# Copyright (C) 2006-2012 OpenWrt.org
|
# Copyright (C) 2006-2013 OpenWrt.org
|
||||||
|
|
||||||
START=60
|
START=60
|
||||||
|
|
||||||
@ -7,7 +7,7 @@ SERVICE_USE_PID=1
|
|||||||
|
|
||||||
start() {
|
start() {
|
||||||
[ -f /etc/monitrc ] || return 1
|
[ -f /etc/monitrc ] || return 1
|
||||||
#chmod 0700 /etc/monitrc
|
chmod 0600 /etc/monitrc
|
||||||
service_start /usr/bin/monit
|
service_start /usr/bin/monit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user