Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
557f2f98
Commit
557f2f98
authored
Nov 14, 2014
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace: create initial configuration of monit
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
9a09b8e4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
61 additions
and
0 deletions
+61
-0
wrs_build_wraprootfs
build/scripts/wrs_build_wraprootfs
+3
-0
monitrc
userspace/rootfs_override/etc/monitrc
+58
-0
.gitignore
userspace/rootfs_override/var/monit/.gitignore
+0
-0
No files found.
build/scripts/wrs_build_wraprootfs
View file @
557f2f98
...
...
@@ -105,6 +105,9 @@ ln -s ../tmp $TMPFS/usr/tmp
# mv ubi commands to /sbin: they are needed for boot time
mv
$TMPFS
/usr/sbin/ubi*
$TMPFS
/sbin
#set permisions for monitrc
chmod 600
$TMPFS
/etc/monitrc
# copy /etc to /usr/etc, where it can be edited (boot sequence copies back)
cp -a
$TMPFS
/etc
$TMPFS
/usr/etc
...
...
userspace/rootfs_override/etc/monitrc
0 → 100644
View file @
557f2f98
###############################################################################
## Monit control file
###############################################################################
##
## Comments begin with a '#' and extend through the end of the line. Keywords
## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
##
## Below you will find examples of some frequently used statements. For
## information about the control file and a complete list of statements and
## options, please have a look in the Monit manual.
##
##
###############################################################################
## Global section
###############################################################################
##
## Start Monit in the background (run as a daemon):
#
set daemon 10 # check services at 10 seconds intervals
# with start delay 240 # optional: delay the first check by 4-minutes (by
# # default Monit check immediately after Monit start)
#
#
## Set syslog logging with the 'daemon' facility. If the FACILITY option is
## omitted, Monit will use 'user' facility by default. If you want to log to
## a standalone log file instead, specify the full path to the log file
#
# set logfile syslog facility log_daemon
#
#
## Set the location of the Monit lock file which stores the process id of the
## running Monit instance. By default this file is stored in $HOME/.monit.pid
#
set pidfile /var/run/monit.pid
#
## Set the location of the Monit id file which stores the unique id for the
## Monit instance. The id is generated and stored on first Monit start. By
## default the file is placed in $HOME/.monit.id.
#
set idfile /var/monit/monit.id
#
## Set the location of the Monit state file which saves monitoring states
## on each cycle. By default the file is placed in $HOME/.monit.state. If
## the state file is stored on a persistent filesystem, Monit will recover
## the monitoring state across reboots. If it is on temporary filesystem, the
## state will be lost on reboot which may be convenient in some situations.
#
set statefile /var/monit/monit.state
###############################################################################
## Includes
###############################################################################
##
## It is possible to include additional configuration parts from other files or
## directories.
#
include /etc/monit.d/*
#
userspace/rootfs_override/var/monit/.gitignore
0 → 100644
View file @
557f2f98
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment