[X2Go-Dev] /usr/sbin/x2gocleansessions does not properly quit

Mike Gabriel mike.gabriel at das-netzwerkteam.de
Mon Aug 27 09:38:00 CEST 2012


Hi Paul,

On So 26 Aug 2012 21:51:05 CEST Paul Menzel wrote:

> Dear Mike,
>
>
> as always, thank you for your fast response!
>
>
> Am Sonntag, den 26.08.2012, 21:31 +0200 schrieb Mike Gabriel:
>
>> On So 26 Aug 2012 15:15:40 CEST Paul Menzel wrote:
>>
>> > Dear X2Go folks,
>> >
>> >
>> > while looking into sessions which are still active on the server after
>> > the client was suspended and could not reconnect after resume, I noticed
>> > that `/usr/sbin/x2gocleansessions` seems to not properly exit. It is
>> > somehow run in background and does not exit.
>> >
>> >         $ /usr/sbin/x2gocleansessions --help
>> >         $ echo $?
>> >         0
>> >         $ /usr/sbin/x2gocleansessions --version
>> >         $ echo $?
>> >         0
>> >
>> > They are still listed by `ps aux | grep x2go`.
>>
>> X2Go clean sessions script is a daemon script. It should be possible
>> to execute multiple instances, but it should fork into background.
>> There is no --help and --version available, so these optioned commands
>> will just start another instance of the daemon.
>
> Interesting, thank you for the explanation.
>
> Is there an advantage over letting the user to decide to start in the
> foreground or in the background by using the ampersand »&«?

The script needs root privileges on the file system and it is launched via

   invoke-rc.d x2goserver start

It is not supposed to run with user privileges. Please read the  
script's Perl code for further insights.

Mike


-- 

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0x25771B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digitale PGP-Unterschrift
URL: <http://lists.x2go.org/pipermail/x2go-dev/attachments/20120827/a6fb1b44/attachment.pgp>


More information about the x2go-dev mailing list