Difficulty Running Logout Script with xrdp Sessions #3001
Replies: 5 comments 5 replies
-
@ahtisham96 - could you provide a bit more info:-
Thanks |
Beta Was this translation helpful? Give feedback.
-
@ahtisham96 - are you happy to paste your |
Beta Was this translation helpful? Give feedback.
-
@matt335672 Sure, let me share the 'startvm.sh' script. There are three ways mentioned by XRDP on how we can call the 'user_logout.sh' script.
Note: I have only added a line to call my 'user_logout.sh' script in the 'post_start' function; nothing else has been changed.
|
Beta Was this translation helpful? Give feedback.
-
I think I can see what's happening here. I'm assuming you're on Debian/Ubuntu, but this is relevant for other systems. Important lines are:-
The problem is that the first line never returns, as the codepath involved ends in an Try removing the '.' in from of the first line so it uses an extra shell. |
Beta Was this translation helpful? Give feedback.
-
Hi @matt335672, My access to the server was revoked on Friday. I tested it, and it's not working. I want to clarify that I am using Red Hat. Sorry for the inconvenience. I think the above solution provided for the debian/ubuntu. Thanks |
Beta Was this translation helpful? Give feedback.
-
I've encountered an issue with running a logout script (user_logout.sh) in my xrdp sessions. The script works perfectly fine when I start or terminate sessions using SSH, but it doesn't execute when I create or terminate sessions using the xrdp client. I added the path of the user_logout.sh inside ~/bash_logout script
I attempted to set up the startvm_and_logout script as suggested in the implementation guide, but I couldn't find the specified lines in the default startvm.sh script.
est -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession
Could someone please help me understand why my logout script isn't working with xrdp sessions and how to properly set up the startvm_and_logout script? Any assistance would be greatly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions