- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Process getting SIGHUP
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
10-27-2001 04:38 AM
10-27-2001 04:38 AM
I have this script, say start_procs.sh, that starts up some executables in the background with
' su -
When I invoke this script from the command-prompt, all is well - the processes start, and continue to run in the background till they are explicitly 'kill'ed.
Funny thing is, when I invoke start_procs.sh from the startup file /etc/rc, the processes get a SIGHUP as soon as start_procs.sh exits.
Where am I goofing up?

Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2001 05:15 AM
10-27-2001 05:15 AM
Re: Process getting SIGHUP
If you want to start the scripts as a part
of bootup process, it should be a run-level
startup script under /sbin/init.d directory
with a link to /sbin/rc3.d/Snnn<script> .
There should be a template file in the
/sbin/init.d directory. Make a copy of
it and modify the contents under "start"
case option to include the command
"su xx -c "...." .
/etc/rc is not the correct location
to start off user-defined scripts, since
the system is not completed its booting
process.
-R
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2001 05:41 AM
10-27-2001 05:41 AM
Re: Process getting SIGHUP
Tried that too. But the problem remains - the processes start up, but get signal 1 when my script exits.
-deepak.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2001 09:36 AM
10-27-2001 09:36 AM
Re: Process getting SIGHUP
Try with:
su -
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2001 09:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-27-2001 09:53 AM
10-27-2001 09:53 AM
Re: Process getting SIGHUP
Oops, I should have seen that :) given the fact that I tried several times to get the SIGHUP and didn't succeed (worked as you wanted).
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2001 05:55 AM
10-30-2001 05:55 AM
Re: Process getting SIGHUP
A hack workaround for this is to put a small (few second) sleep command after the "... nohup ...&" to allow nohup to do its work.
A better method is to check (with ps(1)) in a loop if the nohup-ed command has actually started. If not, loop. If so, exit from the loop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2001 07:09 PM
10-30-2001 07:09 PM
Re: Process getting SIGHUP
Harry gets full marks for cracking this one!
