Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


ps -ax | 13 comments | Create New Account
Click here to return to the 'ps -ax' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
ps -ax
Authored by: Anonymous on Apr 20, '01 10:26:52AM

The -9 flag will terminate the process immediately without giving the process a chance to exit cleanly. Using -HUP (hangup) is "nicer" in that the program may be able to shut itself down, but OTOH -HUP doesn't always work and you have to resort to -9 anyway.

For more information open your terminal and type "man kill".



[ Reply to This | # ]
Oh yeah, one more thing...
Authored by: Anonymous on Apr 20, '01 10:29:26AM

The usual way to restart a daemon to reconfigure it is to use kill -HUP. Dunno if it works for mysql but I've done this many times for inetd on solaris 2.6.



[ Reply to This | # ]
ps -ax
Authored by: robh on Apr 20, '01 11:08:41AM

Your description of -HUP sounds more like the definition of -TERM (-15).

Kill -HUP is sometimes used to tell a process to restart/refresh. Often it does absolutelty nothing. The author of the program decides what to do in response to a -HUP.

Kill -TERM tells a process to shutdown (TERMinate) and gives the process the opportunity to do so cleanly.

kill -KILL (aka kill -9) is a shutdown that doesn't allow the process to shutdown cleanly.

If you type "kill -l" (that's an 'L' not the number one) you'll get a list of signals. Count them off to find the numeric equivalent.

kill -l
HUP INT QUIT ILL TRAP ABRT EMT FPE KILL BUS SEGV SYS PIPE ALRM TERM URG STOP TSTP CONT CHLD TTIN TTOU IO XCPU XFSZ VTALRM PROF WINCH INFO USR1 USR2



[ Reply to This | # ]