Operating System - HP-UX
1827428 Members
3685 Online
109965 Solutions
New Discussion

XVfb not running at init time

 
SOLVED
Go to solution
Thayanidhi
Honored Contributor

XVfb not running at init time

Hi,

In order to enable xvfb (X virtual frame buffer)
to use oracle reporter without a graphics card in the server, I configured xvfb.

If I run manually /sbin/init.d/xvfb start it works. But in init time it always runs only
portion of it.

The script looks like below.

'start')
if [ "$START_XVFB" -eq 1 ]; then
if [ ! -f /etc/X11/X${DNUM}screens ]; then
echo X${DNUM}screens missing. Creating default
echo "ServerOptions" > /etc/X11/X${DNUM}screens
echo " ServerMode XVfb" >> /etc/X11/X${DNUM}screens
fi
( $XVFB :${DNUM} $ARGS &)
/usr/bin/sleep 10
/usr/bin/X11/xset fp+ tcp/${FONTSERVER}:7000 -display :${DNUM}
/usr/bin/sleep 10
/usr/bin/X11/mwm -display :${DNUM} &
/usr/bin/sleep 10
/usr/bin/X11/xclock -display :${DNUM} &
set_return
else
rval=2
fi

Only the "( $XVFB :${DNUM} $ARGS &)" is getting executed while init. all the remaining
precess (mwm,xclock) is not starting from init.

I tried with nohup option, I also tried to run
from different init scripts(to make sure time out is not a issue). The result is same.

Now I doubt mwm and xclock can run from only a terminal. Init time processes start with tty "?". If this is the issue how to start a
process in a tty from init?

Thanks in advance

T.Thayanidhi


Attitude (not aptitude) determines altitude.
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: XVfb not running at init time

I am attacghing a working configuration file /erc/rc.config./xvfb

I would consider reinstalling.

reference:
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066910631

For 11.00
http://www2.itrc.hp.com/service/patch/patchDetail.do?patchid=PHSS_26620&context=hpux:700:11:00

11.11

http://www2.itrc.hp.com/service/patch/patchDetail.do?patchid=PHSS_26622&context=hpux:800:11:11

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Paula J Frazer-Campbell
Honored Contributor

Re: XVfb not running at init time

Hi

If it runs manually but not at init then it is an environmental variable that is missing at init time.

Paula
If you can spell SysAdmin then you is one - anon