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 Gateway allows users \
6
# description: The Zarafa Gateway allows users \
7
#              to access their email using the POP3 or IMAP protocol.
7
#              to access their email using the POP3 or IMAP protocol.
8
# processname: /usr/sbin/zarafa-gateway
8
# processname: /usr/sbin/zarafa-gateway
9
# config: /etc/zarafa/gateway.cfg
9
# config: /etc/zarafa/gateway.cfg
10
# pidfile: /var/run/zarafa-gateway.pid
10
# pidfile: /var/run/zarafad/gateway.pid
11
 
11
 
12
### BEGIN INIT INFO
12
### BEGIN INIT INFO
13
# Provides: zarafa-gateway
13
# Provides: zarafa-gateway
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
gateway=`basename $GATEWAYPROGRAM`
41
gateway=`basename $GATEWAYPROGRAM`
42
lockfile=/var/lock/subsys/$gateway
42
lockfile=/var/lock/subsys/$gateway
43
pidfile=/var/run/$gateway.pid
43
pidfile=/var/run/zarafad/gateway.pid
44
 
44
 
45
start() {
45
start() {
46
	# Start in background, always succeeds
46
	# Start in background, always succeeds
47
	echo -n $"Starting $gateway: "
47
	echo -n $"Starting $gateway: "
-
 
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 $GATEWAYPROGRAM $GATEWAYCONFIG_OPT
51
	daemon $GATEWAYPROGRAM $GATEWAYCONFIG_OPT
51
	RETVAL=$?
52
	RETVAL=$?
52
	unset LC_ALL LANG
53
	unset LC_ALL LANG