[Mimedefang] init script error or warning message

Paul Murphy pjm at ousekjarr.org
Tue Feb 21 05:31:27 EST 2006


> when i start the mimedefang i get this:
> 
> /etc/init.d/mimedefang start
> Starting mimedefang-multiplexor:
> /etc/init.d/mimedefang: line 1: [: missing `]'
> [  OK  ]
> Starting mimedefang:
> /etc/init.d/mimedefang: line 1: [: missing `]'
> [  OK  ]

Check your startup script for "if" checks where the closing bracket does not
have a space in front of it, e.g.:

CORRECT:	if [ -x /usr/bin/$prog ] ; then
WRONG:	if [ -x /usr/bin/$prog] ; then

Note the space after $prog - this is important, as Bourne shell needs it to
be able to see the end of the variable before the closing bracket.

See also
http://lists.roaringpenguin.com/pipermail/mimedefang/2006-January/028983.html
- the mailing list archives are your friend.

Best Wishes,

Paul.

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.11/264 - Release Date: 17/02/2006
 




More information about the MIMEDefang mailing list