LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

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


Hi,
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:
#!/bin/bash

. /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?
 
  


Reply


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


All times are GMT -5. The time now is 12:56 PM.

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