- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- /etc/inittab entries.
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
01-20-2008 08:07 PM
01-20-2008 08:07 PM
I hv added a new entry to /etc/inittab.
-------------------------------------------
eigsec1:23456:respawn:/usr/bin/su - eigsec "-c /usr/bin/ssh -nNTx -o ServerAliveInterval=60 -L 9883:auyxuap003wbcx2.unix.srv.w
estpac.com.au:1521 auyxuap003wbcx2.unix.srv.westpac.com.au >/dev/null 2>&1"
----------------------------------------------
Would this process start automatically?Or would it come to affect only after a system reboot..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2008 08:59 PM
01-20-2008 08:59 PM
Re: /etc/inittab entries.
inetd -c
Hasan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2008 09:13 PM
01-20-2008 09:13 PM
Re: /etc/inittab entries.
Is the above syntax correct? it is giving me following error,
INIT: Command is respawning too rapidly.
Will try again in 5 minutes.
Check for possible errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2008 09:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2008 09:19 PM
01-20-2008 09:19 PM
Re: /etc/inittab entries.
You need to run "init -q" to make active new entries.
Rgds
DK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2008 09:23 PM
01-20-2008 09:23 PM
Re: /etc/inittab entries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2008 09:37 PM
01-20-2008 09:37 PM
Re: /etc/inittab entries.
I did run an init -q , but still coming up with same errors. I doubt, my syntax is wrong
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2008 11:19 PM
01-20-2008 11:19 PM
Re: /etc/inittab entries.
You have redirected the error messages of your command to /dev/null, so there is no information about what is wrong.
Change the ">/dev/null 2>&1" part of the command to ">>/tmp/port_forward.log 2>&1" or something similar.
Then execute "init -q" to make init try again a few times, then read the file (/tmp/port_forward.log or whatever name you used).
As a matter of personal preference: I would not embed a complex command like that directly to /etc/inittab.
I would make it a small two-line script (the first line would be "#!/bin/sh", the second your command). After making the script executable and testing that it works, I might add an inittab entry to _execute that script_.
A wild guess about the cause of the error:
maybe the su command is returning an error because of strange quoting?
You have:
...su - eigsec "-c /usr/bin/ssh ...
Try this instead:
...su - eigsec -c "/usr/bin/ssh ...
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2008 05:03 PM
01-21-2008 05:03 PM
Re: /etc/inittab entries.
Finally, the process has started.But I could see two process in ps -ef output,I think one is the shell process. Is there a way we can aviod these shell process? Thank you
eigsec 13180 13109 0 11:53:06 ? 0:00 /usr/bin/ssh -nNTx -o ServerAliveInterval=60 -L 9884:auaeuap009
eigsec 13109 1 0 11:53:06 ? 0:00 -ksh -c /usr/bin/ssh -nNTx -o ServerAliveInterval=60 -L 9884:au
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-21-2008 06:10 PM
01-21-2008 06:10 PM
Re: /etc/inittab entries.
As the last line of your shell script you should use:
eval /usr/bin/ssh ...
If you still have that "su ... -c" in inittab, you might be able to insert that eval there, before the /usr/bin/ssh.
Warning: Don't use eval if you have here documents in your script.