Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Besides, you can customize the configuration in several ways:

Monit is installed with the default configuration and some parameters can be overrided with env variables:

- MONIT_DAEMON="60" # Length of monit "cycles"
- MONIT_PORT="2812" # Port to listen monit httpd service
- MONIT_ALLOW="localhost" # Rule to allow connections to the httpd port
- MONIT_ARGS="-I" # Monit exec args
Expand Down
3 changes: 2 additions & 1 deletion root/opt/monit/bin/monit-start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ fi

chmod 700 ${MONIT_HOME}/etc/monitrc

MONIT_DAEMON=${MONIT_DAEMON:-"60"}
MONIT_PORT=${MONIT_PORT:-"2812"}
MONIT_ALLOW=${MONIT_ALLOW:-"localhost"}
MONIT_ARGS=${MONIT_ARGS:-"-I"}

cat << EOF > ${MONIT_HOME}/etc/conf.d/basic
set daemon 60
set daemon ${MONIT_DAEMON}
set logfile ${MONIT_HOME}/log/monit.log
set pidfile ${MONIT_HOME}/log/monit.pid
set statefile ${MONIT_HOME}/log/monit.state
Expand Down