Subversion Repositories configs

Rev

Rev 43 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 43 Rev 59
Line 4... Line 4...
4
#
4
#
5
# chkconfig: 345 86 24
5
# chkconfig: 345 86 24
6
# description: The Zarafa Presence Daemon
6
# description: The Zarafa Presence Daemon
7
# processname: /usr/sbin/zarafa-presence
7
# processname: /usr/sbin/zarafa-presence
8
# config: /etc/zarafa/presence.cfg
8
# config: /etc/zarafa/presence.cfg
9
# pidfile: /var/run/zarafa-presence.pid
9
# pidfile: /var/run/zarafad/presence.pid
10
 
10
 
11
### BEGIN INIT INFO
11
### BEGIN INIT INFO
12
# Provides: zarafa-presence
12
# Provides: zarafa-presence
13
# Required-Start: $local_fs $network $remote_fs $syslog
13
# Required-Start: $local_fs $network $remote_fs $syslog
14
# Required-Stop: $local_fs $network $remote_fs $syslog
14
# Required-Stop: $local_fs $network $remote_fs $syslog
Line 36... Line 36...
36
. /etc/rc.d/init.d/functions
36
. /etc/rc.d/init.d/functions
37
 
37
 
38
RETVAL=0
38
RETVAL=0
39
presence=`basename $PRESENCEPROGRAM`
39
presence=`basename $PRESENCEPROGRAM`
40
lockfile=/var/lock/subsys/$presence
40
lockfile=/var/lock/subsys/$presence
41
pidfile=/var/run/$presence.pid
41
pidfile=/var/run/zarafad/presence.pid
42
 
42
 
43
start() {
43
start() {
44
	# Start in background, always succeeds
44
	# Start in background, always succeeds
45
	echo -n $"Starting $presence: "
45
	echo -n $"Starting $presence: "
-
 
46
	install -dm0775 -o zarafa -g zarafa /var/run/zarafad
46
	export LC_ALL=$ZARAFA_LOCALE
47
	export LC_ALL=$ZARAFA_LOCALE
47
	export LANG=$ZARAFA_LOCALE
48
	export LANG=$ZARAFA_LOCALE
48
	daemon $PRESENCEPROGRAM $PRESENCECONFIG_OPT
49
	daemon $PRESENCEPROGRAM $PRESENCECONFIG_OPT
49
	RETVAL=$?
50
	RETVAL=$?
50
	unset LC_ALL LANG
51
	unset LC_ALL LANG