gksu, disown and closed programs
Hallo,
I have written an administration tool for "smstools", and the $USER
can start/stop smsd.
Problem: 'smsd' died if I close the administration tool.
----[ -c 'pstree Alpancu ' ]----------------------------------------
init,1
|-(keventd,2)
|-(ksoftirqd_CPU0,3)
<snip>
|-gpm,655 -m /dev/psaux -t ps2 -Rraw
|-sshd,684
|-in.swhoisd,701,nobody
<snip>
|-bash,14151,michelle.konzack
| `-startx,14423 /usr/X11R6/bin/startx
| `-xinit,14437 /usr/X11R6/lib/X11/xinit/xinitrc -- /usr/X11R6/lib/X11/xinit/xserverrc
| |-XFree86,14439,root -dpi 100 -nolisten tcp
| `-sh,14454 /home/michelle.konzack/.xsession
| |-ssh-agent,14484 /home/michelle.konzack/.xsession
| `-fvwm,14922
<snip>
| |-tdsmsdaemon,17654 /home/michelle.konzack/bin/tdsmsdaemon --admin
Here I have started the "tdsmsdaemon --admin"
| | `-gksu,17708 --title=tdsmsdaemon --icon=/home/michelle.konzack/icons/64x64.tdsmsdaemon.xpm--message=You must be root to run tdsmsdaemon. P
| | `-gksu-run-helper,17745,root /home/michelle.konzack/bin/tdsmsdaemon --admin
Here it detect that I am not root and start gksu
| | `-tdsmsdaemon,17758 /home/michelle.konzack/bin/tdsmsdaemon --admin
| | |-tdsmsdaemon,18856 /home/michelle.konzack/bin/tdsmsdaemon --admin | | | |-tail,18861 -n 400 -f /var/log/smsd.log
| | | |-tdsmsdaemon,18862 /home/michelle.konzack/bin/tdsmsdaemon --admin
| | | | |-cat,18864
| | | | `-tdsmsdaemon,18865 /home/michelle.konzack/bin/tdsmsdaemon --admin
| | | `-Xdialog,18863 --wmclass tdsmstools --rc-file /etc/tdsmstools/daemon.gtkrc --title tdsmsdaemon - Logger --backtitleThis is a Test for Mich
Here I start the Logger
| | `-tdsmsdaemon,18857 /home/michelle.konzack/bin/tdsmsdaemon --admin
| | `-Xdialog,19293
And this is the main dialog.
| |-tdsmsclient,20214 /home/michelle.konzack/bin/tdsmsclient
| | `-tdsmsclient,13464 /home/michelle.konzack/bin/tdsmsclient
| | `-Xdialog,14512
A running tdsmsclient to read, write and admin SMS
<snip>
| `-sh,28574 -c exec pstree -Alpancu | sed 's,\ , ,g' |xmessage -center -file -
| |-pstree,28575 -Alpancu
| |-sed,28576 s,\ , ,g
| `-xmessage,28577 -center -file -
|-smsd,18501 -c /etc/tdsmstools/smsd.conf
| `-smsd,18503 -c /etc/tdsmstools/smsd.conf
Here is the 'smsd' which was called from the Mainprocess 17758 disowned
<snip>
--------------------------------------------------------------------
The problem is now, that 'smsd' die, if I exit the process 17758
or are 17654 (tdsmsdaemon) or 17708 and 17745 (gksu) responsable?
And as anyone can see, the "smsd" process is definitivly disowned.
Also it does not mather HOW 'smsd' was called (directly or via /etc/init.d/smsd).
I assume, that 'smsd' disown only from "tdsmsdaemon,17758" and not from "gksu,17708".
Any ideas how to solv this problem?
Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
--
Haeufig gestellte Fragen und Antworten (FAQ):
http://www.de.debian.org/debian-user-german-FAQ/
Zum AUSTRAGEN schicken Sie eine Mail an debian-user-german-REQUEST@lists.debian.org
mit dem Subject "unsubscribe". Probleme? Mail an listmaster@lists.debian.org (engl)
----- End forwarded message -----
Hello,
Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
Reply to: