aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/monit/files
diff options
context:
space:
mode:
authorfeld <feld@FreeBSD.org>2013-09-04 09:15:45 +0800
committerfeld <feld@FreeBSD.org>2013-09-04 09:15:45 +0800
commit92fa4d3f8891ba897f98986d3aa3f4a690d5211e (patch)
tree55e7e7831a6ddff506b24fea7335f218ea83f515 /sysutils/monit/files
parent7ccd3813f063e814dd0228f62f879cd1cf1267ff (diff)
downloadfreebsd-ports-gnome-92fa4d3f8891ba897f98986d3aa3f4a690d5211e.tar.gz
freebsd-ports-gnome-92fa4d3f8891ba897f98986d3aa3f4a690d5211e.tar.zst
freebsd-ports-gnome-92fa4d3f8891ba897f98986d3aa3f4a690d5211e.zip
- Update to 5.6
- Port cleanup PR: ports/181782 Submitted by: martinp@tildeslash.com Approved by: swills (mentor)
Diffstat (limited to 'sysutils/monit/files')
-rw-r--r--sysutils/monit/files/monit.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/sysutils/monit/files/monit.in b/sysutils/monit/files/monit.in
index 83ecd7c959a2..ccf26a36e25b 100644
--- a/sysutils/monit/files/monit.in
+++ b/sysutils/monit/files/monit.in
@@ -17,20 +17,21 @@
#
. /etc/rc.subr
-name="monit"
+name=monit
rcvar=monit_enable
+load_rc_config ${name}
-restart_precmd="monit_checkconfig"
-reload_precmd="monit_checkconfig"
-[ -z "$monit_enable" ] && monit_enable="NO"
+: ${monit_enable:=NO}
-load_rc_config $name
+extra_commands=reload
+restart_precmd=monit_checkconfig
+reload_precmd=monit_checkconfig
default_config=%%PREFIX%%/etc/monitrc
required_files=${default_config}
command="%%PREFIX%%/bin/monit"
command_args="-c ${default_config}"
-pidfile="/var/run/monit.pid"
+pidfile=/var/run/monit.pid
monit_checkconfig()
{
@@ -38,5 +39,4 @@ monit_checkconfig()
${command} ${command_args} -t
}
-extra_commands="reload"
run_rc_command "$1"