aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/monit
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2010-03-17 10:46:53 +0800
committerdougb <dougb@FreeBSD.org>2010-03-17 10:46:53 +0800
commit84dbafa66f10a0751229ba3b3d9db7d0c225c362 (patch)
tree5fbbb7288388e140991a3684c1c9205ed68ab2d8 /sysutils/monit
parentb453f180059f98277a5bd0e58cb2f8564eae9951 (diff)
downloadfreebsd-ports-gnome-84dbafa66f10a0751229ba3b3d9db7d0c225c362.tar.gz
freebsd-ports-gnome-84dbafa66f10a0751229ba3b3d9db7d0c225c362.tar.zst
freebsd-ports-gnome-84dbafa66f10a0751229ba3b3d9db7d0c225c362.zip
Fix the rc.d script for the case when there is no monit_enable in
rc.conf by adding a $ to the variable in the test. Delete the empty variable assignment for _flags. These should never be done, and the information about _flags is already in the comments. Bump PORTREVISION to document the fix.
Diffstat (limited to 'sysutils/monit')
-rw-r--r--sysutils/monit/Makefile1
-rw-r--r--sysutils/monit/files/monit.sh.in3
2 files changed, 2 insertions, 2 deletions
diff --git a/sysutils/monit/Makefile b/sysutils/monit/Makefile
index 06c445cef1aa..03794d9692ae 100644
--- a/sysutils/monit/Makefile
+++ b/sysutils/monit/Makefile
@@ -7,6 +7,7 @@
PORTNAME= monit
PORTVERSION= 5.1.1
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://www.mmonit.com/monit/dist/
diff --git a/sysutils/monit/files/monit.sh.in b/sysutils/monit/files/monit.sh.in
index f007c3009832..f65c1ba2d1df 100644
--- a/sysutils/monit/files/monit.sh.in
+++ b/sysutils/monit/files/monit.sh.in
@@ -22,8 +22,7 @@ rcvar=`set_rcvar`
restart_precmd="monit_checkconfig"
reload_precmd="monit_checkconfig"
-[ -z "monit_enable" ] && monit_enable="NO"
-[ -z "$monit_flags" ] && monit_flags=""
+[ -z "$monit_enable" ] && monit_enable="NO"
load_rc_config $name