File: monit.bug-script

package info (click to toggle)
monit 1%3A5.9-1%2Bdeb8u1
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 7,592 kB
  • ctags: 6,401
  • sloc: ansic: 21,821; sh: 11,054; yacc: 2,816; lex: 895; makefile: 255
file content (19 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

mconf=/etc/monit/monitrc

if [ ! -r $mconf ]
then
  cat >&3 <<EOF

Monit config file $mconf is *NOT* readable by reportbug.
Please, consider to rerun reportbug as root and *carefully* examine
reportbug's output (e.g., monitrc content), before sending it out.
EOF
fi

printf "\nContents of /etc/monit/ directory:\n" >&3
/bin/ls -lR /etc/monit >&3 2>&1
printf "\n" >&3

exit 0