Unfortunately, this method is unacceptable for thin clients, but suggested using crontab.
Here is a working script for cron shutdown:
 
# shutdown x2gothinclient if not X-session
XSES=`ps ax | grep X |sed -n '/nxproxy/p'`
[ -n "$XSES" ] && echo "XORG run ! " || shutdown -h now
 
 
21.08.2021, 18:41, "Mike Gabriel" <mike.gabr...@das-netzwerkteam.de>:

On Fr 20 Aug 2021 09:41:30 CEST, ovt wrote:
 

 We need a script for a thin client:
 If within 10 minutes the user has not opened a session, turn off the
 computer.


You could install shutdown-at-night [1] on those thinclients and call
the script every 20 minutes.

The shutdown-at-night package might need some adjustments, though for
detecting that someone is logged in via X2Go or not. The
shutdown-at-night tool works great on desktop computers.

Mike

[1] https://packages.debian.org/sid/shutdown-at-night

--

DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31
mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de
_______________________________________________
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user

Reply via email to