Quote:
Originally Posted by beeblequix
Does this sound most reasonable?
-- start with -15
-- wait a few seconds, recheck running processes
-- try -15 again
-- wait...check
-- if it's not down issue a -2
-- wait...check
-- -2 again
-- wait...check
-- THEN we may start using -9......or not? Ideas?
|
You approach is very reasonable to me, people who directly start with -9 are fools as -9 is a last resort feature, not a general purpose one.
By the way, you may want to use the non numerical names for better portability, i.e. kill -TERM, kill -INT then kill -KILL.