04-19-2010
Killing child daemon started by parent process
Hi All,
Hope this is right area to ask this question.
I have a shell script (bash) "wrapper.sh", which contains few simple shell command
which executes a "server.sh" (conatins code to execute a java server) as a daemon.
Now what I want to kill this "server.sh" so that the server should get shutdown.
What could be the way to kill this "server.sh".
Will killing "wrapper.sh" will automatically kill the "server.sh"?
Or I have to kill both this process?
Or By merely killing "server.sh" will automatically shutdown the server?
Few code and concepts will definitely be appreciated.
regards,
jw
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have a written a script in korn shell for importing data into a oracle database. The shell invokes the import within the script. I want to kill this import (child process) . I tries using trap, but this does not kill the import even if i press cnt c. i have to login into other terminal... (2 Replies)
Discussion started by: yerics
2 Replies
2. Programming
Hi,
When i m trying to run below code,its entering into wait stage.
output: In parent
pid=2134 // some random value assigned to child process
parent waiting.....
and then it keeps on waiting for child to get terminate
Y this child is not getting... (5 Replies)
Discussion started by: Crab
5 Replies
3. Shell Programming and Scripting
I am calling another script from my main script and making it run in the background,based upon the value of the input provided by the user I want to kill the child process ,I have written this code
timer.ksh &
PID=$$
print "\n Do you wish to continue .. (Y/N) : \c "
read kill_proc
if ]... (4 Replies)
Discussion started by: mervin2006
4 Replies
4. Shell Programming and Scripting
I have a script that (ideally) starts tcpdump, sleeps a given number of seconds, then kills it.
When I do this for 10 seconds or and hour, it works fine. When I try it for 10 hours (the length I actually want) it just doesn't die, and will actually stick around for days.
Relevant part of my... (1 Reply)
Discussion started by: upnix
1 Replies
5. UNIX for Advanced & Expert Users
Hi all,
I am writing a script which calls other third party scripts that perform numerous actions. I have no control over these scripts.
My problem is, one of these scripts seems to execute and do what it is meant to do, but my calling / parent script always exits at that point. I need to... (4 Replies)
Discussion started by: mark007
4 Replies
6. Shell Programming and Scripting
Hi All,
I have two ksh script. 1st script calls the 2nd script and the second script calls an 'C' program.
I want 1st script to wait until the 'C' program completes.
I cant able to get the process id for the 'C' program (child process) to make the 1st script to wait for the second... (7 Replies)
Discussion started by: sennidurai
7 Replies
7. Shell Programming and Scripting
Hey all, I need to launch a script from within 2 other scripts that can run independently of the two parent scripts... Im having a hard time doing this, if anyone knows how please let me know.
More detail.
ScriptA (bash), ScriptB (ksh), ScriptC (bash)
ScriptA, launches ScriptB
ScirptB,... (7 Replies)
Discussion started by: trey85stang
7 Replies
8. Emergency UNIX and Linux Support
Hello, everyone.
Here's a program:
pid_t pid = fork();
if (0 == pid) // child process
{
execvp ...;
}
I send a signal (such as SIGINT) to the parent process, the child process receive the signal as well as the parent process.
However I don't want to child process to receive the... (7 Replies)
Discussion started by: jackliang
7 Replies
9. Shell Programming and Scripting
Hi everyone
i am very new to linux , working on bash shell.
I am trying to solve the given problem
1. Create a process and then create children using fork
2. Check the Status of the application for successful running.
3. Kill all the process(threads) except parent and first child... (2 Replies)
Discussion started by: vizz_k
2 Replies
10. Solaris
Hello,
A little background on what we are doing first. We are running several applications from a CLI, and not all of them are fully functional. They do on occasion core dump, not a problem. We are running a service that takes a screen scrape of those apps and displays them in a more user... (5 Replies)
Discussion started by: Bryan.Eidson
5 Replies
LEARN ABOUT DEBIAN
murmur-user-wrapper
murmur-user-wrapper(1) General Commands Manual murmur-user-wrapper(1)
NAME
murmur-user-wrapper - User wrapper for murmurd.
SYNOPSIS
murmur-user-wrapper [options]
DESCRIPTION
Murmur is the server component of Mumble, a low-latency, high quality VoIP application. Murmur-wrapper is a wrapper script to make it eas-
ier for normal users to set up their own, private murmur server.
OPTIONS
-d "directory"
Set directory to use. By default, the wrapper script uses $HOME/murmur
-s Check if murmur process is running.
-k Terminate running murmur process.
-i Initialize only, do not start the server.
-p "password"
Specify password for the SuperUser account and exit. SuperUser is the mumble equivalent of root, a special user which bypasses all
access restrictions.
NOTES
To create your own private server, you first want to run
murmur-user-wrapper -i
Then edit ~/murmur/murmur.ini to set the various configuration settings. The most important is probably the port; unless you're the only
murmur process running on this server, you'll need to change it.
When you're happy with your settings, you need to set the password for SuperUser, which is your administrator account.
murmur-user-wrapper -p <password>
Once this is done, simply run
murmur-user-wrapper
to start the server.
SEE ALSO
murmurd(1).
AUTHOR
mumble and murmurd was written by Thorvald Natvig <slicer@users.sourceforge.net>.
2008 May 09 murmur-user-wrapper(1)