I've built and installed cyrus-smlacapd-0.5 under Solaris 2.6,
and it seems to work, at least with the telnet test.  The behavior
of the backend is a bit uncivilized, though.  It doesn't background
itself automatically, and it writes debugging messages to standard
output.  I assume that these issues will be addressed in subsequent
versions.  In the meantime, I've worked around them in my init script,
enclosed below:

================================================================
#!/bin/sh -
#
# acap-setup

PATH=/usr/local/cyrus/bin:/usr/local/sml/bin:/usr/bin:/usr/sbin; export PATH
ACAP_PID=`ps -e | grep 'run.spar$' | sed -e 's/^  *//' -e 's/ .*//'`

acap_running() {
        ps -p $ACAP_PID >/dev/null 2>&1
}

[ -f /etc/acapd.conf ] || exit 1

case "$1" in
start)
        if acap_running; then
                echo "cyrus-acapd is already running" >&2
        else
                echo "starting Cyrus cyrus-acapd" >&2
                (
                cd /usr/local/cyrus/bin || exit 1
                exec sml @SMLload=backend.sparc-solaris >/dev/null 2>&1
                ) &
        fi
;;
stop)
        if acap_running; then
                echo "stopping Cyrus cyrus-acapd" >&2
                kill $ACAP_PID
        else
                echo "cyrus-acapd is not running" >&2
        fi
;;
*)
        echo "Usage: /etc/init.d/acapd-setup {start|stop}" >&2
;;
esac

#!/end
================================================================


-- 
-Gary Mills-    -Unix Support-    -U of M Academic Computing and Networking-

Reply via email to