Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-28-2005, 03:27 AM   #1
Registered: Jan 2003
Posts: 76

Rep: Reputation: 15
Linux HA and writing scripts to kill process

I have written a script to kill a particular process that is running a socket that binds to the virtual IP in a Linux HA setup.

This is what I wrote:

. /etc/rc.d/init.d/functions

PROG = "Recieves_message_from_Virtual_IP"

start() {
daemon $PROG

stop() {
killproc $PROG

I referenced the scripts in etc/rc.d/init.d and what I wrote is the same as those scripts. Linux HA has no problem starting the process "Recieves_message_from_Virtual_IP" during bootup using this script but when failsover accour, the process could not be killed using this script and Linux HA could not hand over the Virtual IP to the standby machine.

What could be the possible remedy for this problem?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing Scripts for Linux in Windows AxXium Linux - General 4 07-18-2005 04:01 PM
cannot kill process (kill -9 does not work) mazer13a Linux - General 1 05-27-2005 02:32 PM
can't kill the process ust Linux - Software 2 12-16-2004 11:53 PM
how to kill a process the_rhino Linux - Newbie 5 10-24-2004 10:05 PM
writing Linux shell scripts in Windows NightWolf_NZ Linux - Newbie 3 09-10-2003 09:28 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:03 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration