Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xfvb at system startup

Status
Not open for further replies.

polani

Instructor
Jun 4, 2003
159
CA
We are trying to start vfb at boot up (using inittab) which is not
working, but
when same script is executed from prompt, it works fine. Script is:

"Inittab entry"
"
svfb:2:wait:sh /localscripts/startvfb >/dev/console 2>&1 # start vfb "

Script:
"
#!/bin/ksh

# Start X Virtual Frame Buffer (xvfb) for Oracle IAS

/bin/nohup xinit -- -vfb -force :1 1>/dev/null 2>/dev/null &
"

In this manner vfb is not working and ps entry is as follows:
"
$ ps -eaf | grep -y 'vfb'
root 250010 266422 0 08:04:42 - 0:00 X :1 -vfb -force :1
root 266422 1 0 08:04:42 - 0:00 xinit -- -vfb -force :1
"

When this process is killed and 'startvfb' script is executed from prompt,
it
works fine and 'ps' entry is as follows:

"
$ ps -eaf | grep -y 'vfb'
root 254144 675948 0 10:33:03 - 0:00 ksh
/usr/lpp/X11/defaults/xserv
errc -vfb -force :1
root 675948 1 0 10:33:03 - 0:00 xinit -- -vfb -force :1
root 692358 254144 0 10:33:03 - 0:00 /usr/lpp/X11/bin/X -D
/usr/lib/
X11/rgb -vfb -force :1
"

Kindly advise why this difference in process entries when starting from
inittab
and how can this be resovled?

Here comes polani Once again!!!

P690 Certified Specailist
HACMP & AIX Certified Specailist
AIX & HACCMP Instructor
 
You need it to be respawn not wait in the inittab.

I have always set this in the inittab:
xvfb:2:respawn:/usr/bin/X11/X -force -vfb -x abx -x dbe -x GLX :n > /dev/null

And for the 1>/dev/null 2>/dev/null can be changed to: ‘>/dev/null 2>&1’ which is less typing and more standard.

Maybe you need to start both the window manager and the X server which is what xinit does.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top