- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Automating Motif Window Manager (mwm) on bootup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 09:30 AM
тАО10-27-2003 09:30 AM
#!/bin/sh
# /sbin/init.d/xctl
# Version When Who What
# 1.0 23-JAN-03 Bob Fonacier Created
# 1.1 21-FEB-03 Gareth Roberts Added mwm and changed screen size, fixed vars
# 1.2 11-SEP-03 Bob Fonacier Added exit & linked to /sbin/rc3.d
# ln -s /sbin/init.d/xctl /sbin/rc3.d/S995xctl
case $1 in
'start_msg')
echo "Starting X term for unix"
;;
'start')
DISPLAY=`/usr/bin/hostname`:0.0; export DISPLAY
/usr/bin/X11/Xvfb :0 -ac -screen 0 1024x768x8 -pn -fp \
/usr/lib/X11/fonts/misc -sp /etc/X11/SecurityPolicy &
/usr/bin/X11/mwm &
/usr/bin/X11/xhost +
;;
'stop_msg')
echo "Stopping X term for unix"
;;
'stop')
;;
esac
exit 0;
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 10:53 AM
тАО10-27-2003 10:53 AM
Solutioncommands started by rc scripts from exiting
because of a SIGHUP when /sbin/rc completes.
I would also add a sleep between the start of
the X server and the start of the clients.
The 'start' clause would look something like-
DISPLAY=`/usr/bin/hostname`:0.0; export DISPLAY
nohup sh -c '/usr/bin/X11/Xvfb :0 -ac -screen 0 1024x768x8 -pn -fp \
/usr/lib/X11/fonts/misc &
sleep 5; /usr/bin/X11/xhost + ; /usr/bin/X11/mwm &' > /dev/null
The "-sp /etc/X11/SecurityPolicy" is a
default, so shouldn't be needed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 12:08 PM
тАО10-27-2003 12:08 PM
Re: Automating Motif Window Manager (mwm) on bootup
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-28-2003 11:38 PM
тАО10-28-2003 11:38 PM
Re: Automating Motif Window Manager (mwm) on bootup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2003 04:47 AM
тАО12-22-2003 04:47 AM
Re: Automating Motif Window Manager (mwm) on bootup
well, I only seem to get
mwm: I/O error on display:: :8.0
anyone else?