Re: System V Init Script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, Jun 03, 2009 at 04:42:09AM -0500, John R. Dennison wrote:
> 
> 	I'd think that the pgrep is matching both the processes you want
> 	to kill _and_ the init.d script itself.  Try "pgrep -x" which
> 	will exactly match the specified command.
> 
> 	Even better, use "pkill -x -9 my_app" which will combine the
> 	grep and kill tasks in a single command; the -9 specifies the
> 	signal to send to the matches processes.
> 
> 	"man pgrep" for more information on both commands.

	Blame it on the early hour but it should probably actually read:

	"pkill -x -9 my_app_bin"




							John

-- 
"I'm sorry but our engineers do not have phones."
As stated by a Network Solutions Customer Service representative when asked to
be put through to an engineer.

"My other computer is your windows box."
                                     Ralf Hildebrandt
<sxem> trying to play sturgeon while it's under attack is apparently not fun.

Attachment: pgpAve5RlI6kV.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux