Kostis Thodoris wrote:

>  Has anybody seen a problem when running the ocspd shell script? It
> reports a problem that line
>
I remember I had to tweak the script, but that was mainly because I am
running OCSP on Solaris.
The Solaris sh does not like the ". /etc/rc.d/init.d/functions".

If I try a "status" (that uses this "test 'ps -p ${pid}'" thingy), I am
getting a

$ sudo /etc/init.d/ocspd status
OCSP Responder is
/etc/init.d/ocspd: !: not found
/etc/init.d/ocspd: test: unknown operator TTY

So, sure, the Solaris sh does not like this usage of "test" either.

Anyway, here are my "start" and my "stop" (that's what matters, is it?):

  start)
        echo "Starting OCSP Responder: "
        ${ocspd} -v -c "${conf}" -d
        echo "Done."
        ;;
  stop)
        echo "Shutting down OCSP Responder: "
        if [ -f "$pidfile" ] ; then
                pid=`cat $pidfile`;
                if [ "x$pid" = "x" ] ; then
                        killall -15 ocspd
                else
                        kill -15 ${pid}
                fi
        fi
        echo "Done."
        ;;



Cheers

Guillaume


-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Openca-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openca-users

Reply via email to