- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /sbin/init.d script failure at 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
Forums
Discussions
Discussions
Discussions
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
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
08-21-2002 07:47 AM
08-21-2002 07:47 AM
/sbin/init.d script failure at bootup
/sbin/init.d/xvfb start does not work at boot time
Everything smooth except at boot time the init.d script only starts one of the two processes requires at startup. As soon as the machine boots up I can manually run 'xvfb start' and it works just fine. I have tried making xvfb the last thing to start at boot and same problem. I need some advice on why an init.d script works manually after boot, but not durring the boot (even as the very last thing in init4)
Thanks all
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 07:51 AM
08-21-2002 07:51 AM
Re: /sbin/init.d script failure at bootup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 07:52 AM
08-21-2002 07:52 AM
Re: /sbin/init.d script failure at bootup
In which rcx.d directory do you have the link to the /sbin/init.d script?
It *should* be in /sbin/rc3.d as this is the default run-level.
Also sometimes a startup command needs to be run nohup, not often, but sometimes.
What does the /etc/rc.log show when it tries to start the process?
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 07:53 AM
08-21-2002 07:53 AM
Re: /sbin/init.d script failure at bootup
i.e. ln -s /sbin/init.d/xvfb /sbin/rc3.d/S900vxfb
Sounds like it may be missing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 07:53 AM
08-21-2002 07:53 AM
Re: /sbin/init.d script failure at bootup
HTH
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 07:53 AM
08-21-2002 07:53 AM
Re: /sbin/init.d script failure at bootup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 09:19 AM
08-21-2002 09:19 AM
Re: /sbin/init.d script failure at bootup
I have the appropriate run control symbolic links.
The xvfb start is being issued properly. It seems like more of an xvfb specific matter.
It is like this: 'xvfb start' kicks of procA and procB; at boot time procA starts ok, but procB never comes up. Here are the 2 procs
/usr/bin/X11/X :10 -ac -fbdir /var/X11/Xserver
/usr/bin/X11/mwm -display :10
The mwm -display :10 one will not start at boot. i am looking for advice on what environmetally is different between running a script as su - root and running that script at init time.
Appreciate it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 09:36 AM
08-21-2002 09:36 AM
Re: /sbin/init.d script failure at bootup
Well, you have a fairly sparse environment at boot time. I'd explicitly set any PATH vars as well as any LIB vars in the startup script.
Checking your standard environment as root when you run the command manually should clue you in to what you might need to set.
Also if either of these processes expects a tty to output to, it could be a problem. Then you'd want to get some tput statement(s) in there as well.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 12:05 PM
08-21-2002 12:05 PM
Re: /sbin/init.d script failure at bootup
I have just put a reply to a similar thread today.
It seemed that(to be confirmed by HP) that you can only start Daemon processes from /usr/sbin/init.d, I had same problems before, trying to start a bunch of process at system boot time, but all those process which are not daemons got exit soon after it started, that's why from /etc/rc.log everything seemed fine, but the process is not running.
I would assume that mwm is not a daemon process. My solution is that instead of starting "mwm" directly from /usr/sbin/xvfb, using "at" to schedule it to start after, say 5 mins, then it will work fine.
please let me know if it works.
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2002 12:07 PM
08-21-2002 12:07 PM
Re: /sbin/init.d script failure at bootup
Gary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 05:30 AM
08-22-2002 05:30 AM
Re: /sbin/init.d script failure at bootup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2002 07:00 AM
08-22-2002 07:00 AM
Re: /sbin/init.d script failure at bootup
So make sure to put a link in /sbin/rc3.d as S999xvfb pointing to /sbin/init.d/xvfb.
cd /sbin/rc3.d
ln -s /sbin/init.d/xvfb S999xvfb
chmod 755 S999xvfb
Check /etc/inittab to see what the default run level it.
Check /etc/rc.log to see what if any error messages happen when the system boots.
Finally I would make sure that /sbin/init.d/xvfb sets any environment variables that you need. There may be vars set when you log in that aren't set at boot time so they aren't available when the command is executed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2002 10:11 AM
09-12-2002 10:11 AM
Re: /sbin/init.d script failure at bootup
Just a reminder to give points out to those who answered your questions. It only takes a moment, and helps make the forums more useful to everyone.
Sean