- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- who is the parent process of nohup started process...
Operating System - HP-UX
1819873
Members
2502
Online
109607
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-09-2006 11:53 AM
тАО08-09-2006 11:53 AM
Hi,
If a process or program started by nohup command followed by & symbol and i come out of the terminal by exit command; then, is the process gets adopted by "init" process as the parent and would continue running ?
Thanks,
Shiv
If a process or program started by nohup command followed by & symbol and i come out of the terminal by exit command; then, is the process gets adopted by "init" process as the parent and would continue running ?
Thanks,
Shiv
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2006 12:36 PM
тАО08-09-2006 12:36 PM
Solution
Yes, in the case where you logoff and you have a nohup'ed command running, the parent PID becomes 1 (init) and the process continues to run.
This is really the sort of question that you should ask the box itself because some of us might lie to you but the box never does.
Do something like this:
nohup sleep 300 & # just sleep for 5 minutes
ps -u shiv -f
and note the output, paying attention to the PPID and PID columns.
Next,
exit # logout
and immediately log back in as user "shiv".
ps -u shiv -f
and note that the PPID is now 1 but the sleep is still running.
You really need to learn how to ask the box directly because that is the way you learn.
This is really the sort of question that you should ask the box itself because some of us might lie to you but the box never does.
Do something like this:
nohup sleep 300 & # just sleep for 5 minutes
ps -u shiv -f
and note the output, paying attention to the PPID and PID columns.
Next,
exit # logout
and immediately log back in as user "shiv".
ps -u shiv -f
and note that the PPID is now 1 but the sleep is still running.
You really need to learn how to ask the box directly because that is the way you learn.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-09-2006 01:10 PM
тАО08-09-2006 01:10 PM
Re: who is the parent process of nohup started processes
nohup is a process protector, to isolate the process from the Unix signal HUP or hangup. When a parent exits, all child processes still running will be sent the HUP signal. When nohup sees the parent go away, it will transfer the protected process to init. So the process will first have a parent of nohup then init when nohup's parent terminates. nohup's parent is whatever process started it, typically a shell.
Bill Hassell, sysadmin
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP