- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: app holding on the console from inittab
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
02-07-2005 12:45 PM
02-07-2005 12:45 PM
app holding on the console from inittab
I have put the following line in /etc/inittab:
prod:234:once:/progs/chkprod < /dev/console > /dev/console 2>&1
Each time I start up the system (HP B.11.23 Itanium 2) the chkprod program starts up holds on to the console - therefore not displaying the console login screen.
If I telnet and type in: "ps -ft console" I can see the chkprod task on the console port. If I kill the task via "kill -9 xxx" or Ctrl C on the console then the login screen appears.
The same program and /etc/inittab entry on a HP 9000 HP-UX 11.00 works fine. "chkprod" runs in the background and stays as a daemon, releasing the console screen to display a login prompt. But not on HP 11.23 Itanium.
I am using the "once" parameter in the inittab so the system does not wait for its completion as its a background task.
I have also tried running a script from the inittab file and in the script I type in "exec chkprod" thinking that may work, but still no luck.
Any suggestions on how to make make the console login appear after running chkprod from inittab would be much appreciated.
Thanks in advance
JUP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 01:12 PM
02-07-2005 01:12 PM
Re: app holding on the console from inittab
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 01:31 PM
02-07-2005 01:31 PM
Re: app holding on the console from inittab
I do definitely need the output of the program displayed onto the console as it will be the only screen connected to this system (all telnet, serial connections will be disabled).
Maybe I will need to do it through rc files - its just that we've always used inittab files in the past but for our first Itanium system it does not seem to behave properly. If I put them in the rc directory would all output be directed to the console as thats what I need to happen ?
Thanks again
JUP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 05:05 PM
02-07-2005 05:05 PM
Re: app holding on the console from inittab
I really need to run it through /etc/inittab to keep it consistent with all other system builds - any other ideas would be appreciated.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2005 06:57 PM
02-07-2005 06:57 PM
Re: app holding on the console from inittab
prod:234:once:/progs/chkprod < /dev/null > /dev/console 2>&1
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 08:17 AM
02-08-2005 08:17 AM
Re: app holding on the console from inittab
In fact I also tried "> /dev/null" instead of the "/dev/console" - again without much luck.
Thanks anyway for your response
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 08:43 AM
02-08-2005 08:43 AM
Re: app holding on the console from inittab
muxi::sysinit:/sbin/dasetup /dev/console 2>&1 # mux init
vol1::sysinit:/sbin/init.d/vxvm-sysboot /dev/console 2>&1 ##vxvm
vol2::sysinit:/sbin/init.d/vxvm-startup start /dev/console 2>&1 ##vxvm
brc1::bootwait:/sbin/bcheckrc /dev/console 2>&1 # fsck, etc.
sqnc::wait:/sbin/rc /dev/console 2>&1 # system init
The big difference I see comparing these to yours: these all run once, yours will run at least twice on a normal boot (run level 2 and run level 3)
Perhaps this works on earlier, slower releases, but 11.23 loads faster, and maybe you get overlapping runs...?
I would try selecting ONE run level, say 3, and see if that works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2005 04:27 PM
02-08-2005 04:27 PM
Re: app holding on the console from inittab
Any other suggestions ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2005 04:07 AM
02-09-2005 04:07 AM
Re: app holding on the console from inittab
- Can you run '/progs/chkprod' by itself OK form the command line, once the machine is up?
- What does this app do?
- Is it compatible with IA?
- Have you checked the actual console, does it display something there, like user input?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2005 08:16 AM
02-09-2005 08:16 AM
Re: app holding on the console from inittab
'chkprod' is a C program that has an infinite loop that continually checks another systems status. The problem I have is that when run from /etc/inittab it holds onto the console (foreground) where I would like it to run in the background as a daemon.
I have tried the & sign at the end of the inittab entry but then the output is not directed to the console - which I need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2005 08:58 AM
02-09-2005 08:58 AM
Re: app holding on the console from inittab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2005 09:20 AM
02-09-2005 09:20 AM
Re: app holding on the console from inittab
More ideas:
- try removing the input redirect altogether
- try append redirects (>>)
- replace the C app with a simple shell script ('hello world'), see if behavior changes