Zitat von Micah Cowan <mi...@cowan.name>:

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.


_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to