simple pkill question... - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html) +--- Forum: How Do I? (https://www.linux-noob.com/forums/forum-60.html) +--- Thread: simple pkill question... (/thread-830.html) |
simple pkill question... - vcarrion - 2008-09-19 Does Pkill just end the service.. or does it actually restart it as well? I have used the command in this way Pkill -9 java to restart java... but what happens if I do not append java with the -9? I'm working on a live phoneswitch running Redhat and figured asking would be better than just doing to find out. Thanks a lot. simple pkill question... - anyweb - 2008-09-19 pkill kills a process the process you killed probably has a daemon which restarts itself once stopped *or killled* cheers anywe simple pkill question... - hybrid - 2008-09-20 So pkill itself isn't doing the restarting, the daemon is probably bringing the process back up once it detects that it is not running. simple pkill question... - Dungeon-Dave - 2008-09-24 Quote:Pkill -9 javaYou may want to refrain from the "-9" option: just pkill java will do the trick. It may take longer for the java processes to stop, but they'll have a chance to shut down cleanly (and allow the OS to reclaim used memory, file handlers, etc) |