[Mimedefang] init-script[204]: syntax error: `(' unexpected

RC rubbishcollector at yahoo.com
Thu Jul 17 16:01:02 EDT 2003


When stopping MIMEDefang 2.35 on OpenBSD 3.0 with the
example init-script, following error occurs:

/usr/src/mimedefang/mimedefang-2.35/examples:
./init-script stop
./init-script[204]: syntax error: `(' unexpected

Line 204: stop() {

Script beginning with line 204 follows:
----------
stop() {
    # Stop daemon
    printf "%-60s" "Shutting down $prog: "
    if test -f "$PID" ; then
        kill `cat $PID`
        RETVAL=$?
    else
        RETVAL=1
    fi
    if [ $RETVAL = 0 ] ; then
        echo "[  OK  ]"
    else
        echo "[FAILED]"
    fi

    rm -f $SOCKET > /dev/null 2>&1
    rm -f $PID > /dev/null 2>&1

    # Stop daemon
    printf "%-60s" "Shutting down $prog-multiplexor: "
    if test -f "$MXPID" ; then
        kill `cat $MXPID`
        RETVAL=$?
    else
        RETVAL=1
    fi
    if [ $RETVAL = 0 ] ; then
        echo "[  OK  ]"
    else
        echo "[FAILED]"
    fi

    rm -f $MX_SOCKET > /dev/null 2>&1
    rm -f $MXPID > /dev/null 2>&1
}

# See how we were called.
case "$1" in
  start)
  start
    ;;

  stop)
  stop
    ;;
----------

start & reread work fine.  Only stop gives the syntax
error.  Any help?

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



More information about the MIMEDefang mailing list