Page 1 of 1

Typo in /etc/init.d/scalix

Posted: Mon Mar 13, 2006 11:37 am
by bguerreiro
Hi,
Didn't really know where to put this, so sorry if posting it to the wrong place.
There's a typo in scalix script placed in /etc/init.d

Distribution:
CentOS 4.1

Syptoms:
Unable to get status of scalix.

Syntax:
service scalix status

Result:

[root@scalix ~]# service scalix status
/etc/init.d/scalix: line 121: [: missing `]'

Expected behaviour:

[root@scalix ~]# service scalix status
*** scalix
PC Monitor Started NON-STOP 0
Directory Relay Server Started 15:28:52
Notification Server Started 15:28:52 0
Shared memory daemon Started NON-STOP
Notification Monitor Started NON-STOP
Session Monitor Started NON-STOP
Container Access Monitor Started NON-STOP
Item Structure Server Started 15:28:56
Database Monitor Started 15:28:52
Licence Monitor Daemon Started NON-STOP
LDAP Daemon Started 15:28:52
Queue Manager Started NON-STOP
Item Delete Daemon Started NON-STOP
IMAP Server Daemon Started 15:28:52
SMTP Relay Started 15:28:52
Mime Browser Controller Started 15:28:52
Service Router Started 15:28:52 0
Local Delivery Started 15:28:52 0
Internet Mail Gateway Started 15:28:52 0
Local Client Interface Enabled 15:28:52 0
Remote Client Interface Enabled 15:28:52 0
Test Server Started 15:28:52 0
Request Server Started 15:28:52 0
Print Server Started 15:28:52 0
Bulletin Board Server Started 15:28:52 0
Background Search Service Started 15:28:52 0
CDA Server Started 15:28:53 0
POP3 interface Started 15:28:53 0
Omscan Server Started 15:28:53 0
Archiver Started 15:28:53 0

In line 121 there is
if [ -f $(omrealpath '~/sys/sysdata')

and it should be:
if test -f $(omrealpath '~/sys/sysdata')

Bruno Guerreiro

Posted: Mon Mar 13, 2006 10:35 pm
by ScalixSupport
Thanks for that. We'd actually found this not long after we released Scalix 10 and a bug report has been raised for it.

Congratulations for being the only Scalix user ( outside of our field team ) that has used the "service scalix status" command. :-)

Cheers

Dave

Posted: Tue Mar 14, 2006 6:24 am
by aroffe
I found that too. So I've awarded myself a biscuit and a cup of coffee. :-)

Posted: Tue Mar 14, 2006 6:26 am
by bguerreiro
Just a biscuit?
I'll share my bag of cookies with you :-)