• # .

    Posté par . En réponse au message xvfb-run au démarrage. Évalué à 1.

    Avec une mandrake/mandriva j'ai ajouté le /etc/init.d/openoffice suivant :
    ( c'est rustique et tu noteras que c'est fait un peu à l'arrache, mais ça à le mérite de fonctionner pour moi et au moment où je l'ai ecrit, c'est tout ce que je voulais. Les var d'environnement c'est parce que sans, ca ne demarrait pas au boot ( sans message d'erreur bien entendu. )



    #!/bin/sh
    #
    # openoffice This shell script takes care of starting and stopping
    # openoffice server.
    #
    # chkconfig: 2345 99 35
    # description: openoffice provides a merge and pdf printer service.

    . /etc/rc.d/init.d/functions

    HOME=/root
    JAVA_HOME=/usr/java/j2sdk1.4.2_07/
    KBCHARSET=iso-8859-15
    KEYBOARD=fr
    KEYTABLE=fr-latin1
    LINES=60
    LOGNAME=root
    USER=root
    USERNAME=root

    # See how we were called.
    case "1ドル" in
    start)
    gprintf "Starting openoffice: "
    /usr/X11R6/bin/Xvfb :8101 &
    sleep 5
    export DISPLAY=:8101.0
    /usr/local/OpenOffice.org1.1.5/program/soffice &
    echo
    ;;
    stop)
    gprintf "Shutting down openoffice: "
    killproc soffice.bin
    killproc Xvfb
    echo
    ;;
    restart)
    0ドル stop
    0ドル start
    ;;
    status)
    echo "Servers listening on port 8100 :"
    netstat -taupe | grep 8100 | wc -l
    netstat -taupe | grep 8100
    echo "Processes named soffice :"
    ps -ef | grep -i soffice | grep -v grep
    echo "Processes named Xvfb :"
    ps -ef | grep -i xvfb | grep -v grep
    ;;
    *)
    gprintf "Usage: openoffice {start|stop|restart|status}\n"
    exit 1
    esac

    exit 0