Changes between Version 6 and Version 7 of DocRenderPlugin


Ignore:
Timestamp:
Sep 25, 2012 12:40:46 PM (2 years ago)
Author:
bsavelev
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DocRenderPlugin

    v6 v7  
    2727== Example ==
    2828
    29 Sample init-script (tested on Debian)
     29Sample [attachment:openoffice init-script] (tested on Debian)
    3030
    31 {{{
    32 #!/bin/bash
    33 # openoffice.org  headless server script
    34 #
    35 ### BEGIN INIT INFO
    36 # Provides:          openoffice
    37 # Required-Start:    $all
    38 # Required-Stop:     $all
    39 # Default-Start:     2 3 4 5
    40 # Default-Stop:      0 1 6
    41 # Short-Description: openoffice headless
    42 # Description:       openoffice headless
    43 ### END INIT INFO
    44 #
    45 # Author: Vic Vijayakumar
    46 # Modified by Federico Ch. Tomasczik
    47 #
    48 SOFFICE_PATH="/usr/lib/libreoffice/program/soffice.bin"
    49 PIDFILE=/var/run/openoffice-server.pid
    50 
    51 case "$1" in
    52     start)
    53     if [ -f $PIDFILE ]; then
    54       echo "OpenOffice headless server has already started."
    55       sleep 5
    56       exit
    57     fi
    58       echo "Starting OpenOffice headless server"
    59       $SOFFICE_PATH --headless --nologo --nofirststartwizard --nodefault --accept="socket,host=localhost,port=8100;urp;StarOffice.ComponentContext" & > /dev/null 2>&1
    60       echo $! > $PIDFILE
    61     ;;
    62     stop)
    63     if [ -f $PIDFILE ]; then
    64       echo "Stopping OpenOffice headless server."
    65       kill -9 `head $PIDFILE`
    66       rm -f $PIDFILE
    67       exit
    68     fi
    69       echo "Openoffice headless server is not running."
    70       exit
    71     ;;
    72     *)
    73     echo "Usage: $0 {start|stop}"
    74     exit 1
    75 esac
    76 exit 0
    77 }}}
     31Put [attachment:ooextract.py helper] to /usr/local/bin
    7832
    7933Execute init-script, install plugin and edit `attachment` section in trac.ini