Subversion Repositories configs

Rev

Rev 43 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 43 Rev 59
Line 5... Line 5...
5
# chkconfig: 345 86 24
5
# chkconfig: 345 86 24
6
# description: The Zarafa Quota Monitor watches the store sizes \
6
# description: The Zarafa Quota Monitor watches the store sizes \
7
#              of users, and sends warning emails when limits are exceeded.
7
#              of users, and sends warning emails when limits are exceeded.
8
# processname: /usr/sbin/zarafa-monitor
8
# processname: /usr/sbin/zarafa-monitor
9
# config: /etc/zarafa/monitor.cfg
9
# config: /etc/zarafa/monitor.cfg
10
# pidfile: /var/run/zarafa-monitor.pid
10
# pidfile: /var/run/zarafad/monitor.pid
11
 
11
 
12
### BEGIN INIT INFO
12
### BEGIN INIT INFO
13
# Provides: zarafa-monitor
13
# Provides: zarafa-monitor
14
# Required-Start: $local_fs $network $remote_fs $syslog
14
# Required-Start: $local_fs $network $remote_fs $syslog
15
# Required-Stop: $local_fs $network $remote_fs $syslog
15
# Required-Stop: $local_fs $network $remote_fs $syslog
Line 38... Line 38...
38
. /etc/rc.d/init.d/functions
38
. /etc/rc.d/init.d/functions
39
 
39
 
40
RETVAL=0
40
RETVAL=0
41
monitor=`basename $MONITORPROGRAM`
41
monitor=`basename $MONITORPROGRAM`
42
lockfile=/var/lock/subsys/$monitor
42
lockfile=/var/lock/subsys/$monitor
43
pidfile=/var/run/$monitor.pid
43
pidfile=/var/run/zarafad/monitor.pid
44
 
44
 
45
start() {
45
start() {
46
	# Start in background, always succeeds
46
	# Start in background, always succeeds
47
	echo -n $"Starting $monitor: "
47
	echo -n $"Starting $monitor: "
-
 
48
	install -dm0775 -o zarafa -g zarafa /var/run/zarafad
48
	export LC_ALL=$ZARAFA_LOCALE
49
	export LC_ALL=$ZARAFA_LOCALE
49
	export LANG=$ZARAFA_LOCALE
50
	export LANG=$ZARAFA_LOCALE
50
	daemon $MONITORPROGRAM $MONITORCONFIG_OPT
51
	daemon $MONITORPROGRAM $MONITORCONFIG_OPT
51
	RETVAL=$?
52
	RETVAL=$?
52
	unset LC_ALL LANG
53
	unset LC_ALL LANG