Hi,

I've just a comment about the init script on 
http://svn.nuxeo.org/trac/nuxeo/wiki/autoStartInDebian
As I haven't any account to modify the wiki page, I give here what comment I should write (then, someone can edit the wiki page or give to me an account).

It's about starting OO.
I have xfvb & oo installed (on etch) but I don't want to add xbase-clients which bring xauth but also a lot of useless packages (for me).

So, in this case (without xauth), you can change

OODAEMON="xvfb-run -a /usr/lib/openoffice/program/soffice.bin -headless"

by

XVFBDAEMON="Xvfb :99 -screen scrn0 800x600x16"
OODAEMON="/usr/lib/openoffice/program/soffice -headless -display :99"
OOPIDFILE=/var/run/OO$NAME.pid
XVFBPIDFILE=/var/run/XVFB$NAME.pid

and, in the do_start function

$OODAEMON >>$LOGFILE &

by

$XVFBDAEMON >>$LOGFILE &
echo $! > $XVFBPIDFILE
$OODAEMON >>$LOGFILE &
echo $! > $OOPIDFILE

and, in the do_stop function

killall xvfb-run >>$LOGFILE &

by

[ -f $OOPIDFILE ] && kill `cat $OOPIDFILE` && rm $OOPIDFILE
[ -f $XVFBPIDFILE ] && kill `cat $XVFBPIDFILE` && rm $XVFBPIDFILE

So, it's not so important, just a way to avoid installing xauth.

--
Daniel
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to