File: error-log

package info (click to toggle)
ejabberd 26.02-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 15,396 kB
  • sloc: erlang: 122,646; sh: 4,258; sql: 3,633; perl: 869; makefile: 559; javascript: 216; python: 48
file content (10 lines) | stat: -rw-r--r-- 194 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
set -ex

invoke-rc.d ejabberd start

if [ "$(cat /var/log/ejabberd/error.log | wc -l)" -gt 0 ]; then
	echo "ERROR: error.log is not empty!"
	cat /var/lib/ejabberd/error.log
	exit 1
fi