screen-users
[Top][All Lists]
Advanced

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

Re: terminate screen session with childs


From: monolog
Subject: Re: terminate screen session with childs
Date: Wed, 15 Jul 2009 10:38:35 +0200
User-agent: Internet Messaging Program (IMP) H3 (4.1.6)

Zitat von Micah Cowan <address@hidden>:

Rainhard wrote:
Hi everyone,

I have a problem to kill screen and its childs.
I'm starting a program through rc.d scripts with
screen -dmS <name> -- <program> <args>
So far everything works great, but if I make a kill on screen,
the child survives.
Anyway, if I'm starting the program with screen -mS ... and then
detach and kill, it's working.
Anyone have a clue why it's not working in detach/daemon mode?

It's a lot more useful if you can give specifically what steps do and do
not work, the exact commands and steps you take to terminate the programs.

The steps are (would like to use it with rtorrent on a freenas box):
.) screen -mS rtorrent -- rtorrent
.) C-a d
.) ps aux|grep rtorrent
   root    902  0.7  3.3 10760  8148  p1  Ss+  12:33PM   0:00.15 rtorrent
root 900 0.1 0.8 3536 1884 ?? Ss 12:33PM 0:00.03 screen -mS rtorrent -- rtorrent
.) kill 900
works - screen and rtorrent terminates

.) screen -dmS rtorrent -- rtorrent
.) ps aux|grep rtorrent
   root    902  0.7  3.3 10760  8148  p1  Ss+  12:33PM   0:00.15 rtorrent
root 900 0.1 0.8 3536 1884 ?? Ss 12:33PM 0:00.03 screen -mS rtorrent -- rtorrent
.) kill 900
doesn't work, screen terminates but rtorrent (PID:902) runs on.

kind regards
Rainhard

PS: I'm sry about the double post, I thought my mail server bounced the mail.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]