Subversion Repositories configs

Rev

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

Rev 43 Rev 59
Line 6... Line 6...
6
# description: This package adds a licensing daemon to the Zarafa Collaboration \
6
# description: This package adds a licensing daemon to the Zarafa Collaboration \
7
#              Platform. This daemon is needed to run propietary add-ons, like the \
7
#              Platform. This daemon is needed to run propietary add-ons, like the \
8
#              Microsoft Outlook client.
8
#              Microsoft Outlook client.
9
# processname: /usr/sbin/zarafa-licensed
9
# processname: /usr/sbin/zarafa-licensed
10
# config: /etc/zarafa/licensed.cfg
10
# config: /etc/zarafa/licensed.cfg
11
# pidfile: /var/run/zarafa-licensed.pid
11
# pidfile: /var/run/zarafad/licensed.pid
12
 
12
 
13
### BEGIN INIT INFO
13
### BEGIN INIT INFO
14
# Provides: zarafa-licensed
14
# Provides: zarafa-licensed
15
# Required-Start: $local_fs $network $remote_fs $syslog
15
# Required-Start: $local_fs $network $remote_fs $syslog
16
# Required-Stop: $local_fs $network $remote_fs $syslog
16
# Required-Stop: $local_fs $network $remote_fs $syslog
Line 40... Line 40...
40
. /etc/rc.d/init.d/functions
40
. /etc/rc.d/init.d/functions
41
 
41
 
42
RETVAL=0
42
RETVAL=0
43
licensed=`basename $LICENSEDPROGRAM`
43
licensed=`basename $LICENSEDPROGRAM`
44
lockfile=/var/lock/subsys/$licensed
44
lockfile=/var/lock/subsys/$licensed
45
pidfile=/var/run/$licensed.pid
45
pidfile=/var/run/zarafad/licensed.pid
46
 
46
 
47
start() {
47
start() {
48
	# Start in background, always succeeds
48
	# Start in background, always succeeds
49
	echo -n $"Starting $licensed: "
49
	echo -n $"Starting $licensed: "
-
 
50
	install -dm0775 -o zarafa -g zarafa /var/run/zarafad
50
	export LC_ALL=$ZARAFA_LOCALE
51
	export LC_ALL=$ZARAFA_LOCALE
51
	export LANG=$ZARAFA_LOCALE
52
	export LANG=$ZARAFA_LOCALE
52
	daemon $LICENSEDPROGRAM $LICENSEDCONFIG_OPT	
53
	daemon $LICENSEDPROGRAM $LICENSEDCONFIG_OPT	
53
	RETVAL=$?
54
	RETVAL=$?
54
	unset LC_ALL LANG
55
	unset LC_ALL LANG