- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- is there no stopping a process started with nohup?
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
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
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
тАО05-31-2000 06:25 AM
тАО05-31-2000 06:25 AM
is there no stopping a process started with nohup?
I was researching this and came across the hohup command. I think thats what is going on here. Is there any way to kill this process?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2000 06:49 AM
тАО05-31-2000 06:49 AM
Re: is there no stopping a process started with nohup?
Examine the file /etc/inittab if the process appears there. If yes and you really know the process can be killed, set the process from respawn to off and do a "init q" after that (init rereads inittab and stops the process). Another way is to erase the line in /etc/inittab, do the init q and kill the process after that manually.
If all this does not work, reboot your machine after removing the inittab entry, the process will not be started during the next boot.
Be careful ! most processes in inittab are needed by the system. Which process makes the problem ?
If the command does not appear in inittab, it is started at bootup with the scripts under /sbin/init.d. If killing of the process does not work, it hangs during a kernel routine (I/O access etc.). Then it can only be killed by stopping the kernel (=> reboot), and you have to edit the config files under /etc/rc.config.d to prevent it being restarted at next bootup.
see manual pages init and inittab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-31-2000 06:54 AM
тАО05-31-2000 06:54 AM
Re: is there no stopping a process started with nohup?
UNIX makes some guarantees that, for instance, disk read and write system calls are atomic. But one disk write system call could involve many operations. Until the system call completes, UNIX must protect the process from every signal. Sometimes this mechanism goes haywire and you get an unkillable process.
A reboot is often the only way to get rid of such a process. HP's glance program can often tell you why the process is hanging (on the wait states screen, type "W").
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-01-2000 04:53 AM
тАО06-01-2000 04:53 AM
Re: is there no stopping a process started with nohup?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-02-2000 09:45 AM
тАО06-02-2000 09:45 AM
Re: is there no stopping a process started with nohup?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-09-2000 01:32 PM
тАО06-09-2000 01:32 PM
Re: is there no stopping a process started with nohup?
This will send a STOP signal to the process and suspend it. It will not use up resources. It will sit there idle until you reboot or are able to kill it off.
If the parent of the process died or was killed then init, pid 1 will adopt the process. If the process is still eating up resources then it is obviously running. If it is not using resources it may be a zombie. Do a "ps -el | grep pid" to find the state of the process. Look in the 2nd column. That is the process state. If it is a Z the process is a zombie which means it is trying to exit, but, it can't. The process init is very good at killing its' children. You can try kill -18 1
In this case 1, init, is the parent pid. It will try to kill off it's zombie children. I've just learned this a couple of days ago and have not tried it. Be carefull with it.