Bug#703710: killer CRON disabled on diskless workstations

2018-05-18 Thread Wolfgang Schweer
On Sat, Oct 18, 2014 at 03:19:57PM +0200, Petter Reinholdtsen wrote:
> [Mike Gabriel]
> > If killer works reliably, then: yes (for diskless workstations).
> 
> As far as I know, it work reliably.  But not quite like you think it
> is working.
> 
> > Otherwise, diskless workstations (not sure about thin clients,
> > actually) will not get affected by shutdown-at-night if users forgot
> > to log out.
> 
> Killer will kill processes for people not logged into the machine, not
> throw out logged in users.  It get rid of leftover processes.
> 
> > The expected behaviour would be for diskless workstations:
> > 
> >   o killer ends still-running / not-logged-off sessions after 6h of
> > session duration
> >   o shutdown-at-night turns of the diskless machine within the next hour
> 
> I am not sure killer is the autologout-mechanism you are looking for.
> shutdown-at-night would work if you had such autologin mechanism.

Hi Mike,

you might want to test if the attached script would work as autologout
mechanism. (I've used it at a local school, so comments are in German.)

Wolfgang
#!/bin/bash
# Datei: /usr/local/bin/timed-logout
# Das Paket 'xprintidle' muss installiert sein.

# Nach $IDLE Millisekunden Inaktivität meldet sich der Benutzer ab; der
# Display-Manager wird neu gestartet und zeigt den Anmeldebildschirm.
#
# Wolfgang Schweer .

if [ -r /etc/default/timed-logout ]; then
. /etc/default/timed-logout
fi
IDLE=${IDLE:-240} # Einheit: Millisekunden; voreingestellt: 40 Minuten.

# Warten, bis die Session läuft.
sleep 3

while true; do
if [ $(xprintidle) -gt $IDLE ]; then
# gdm3 ist auch schon eine gnome-session, zusätzliche Bedingung notwendig.
if [ -x /usr/bin/gnome-session-quit ] && [ $(ps ax | grep gnome-settings | 
wc -l) -gt 1 ] ; then
gnome-session-quit --logout --no-prompt
elif [ -x /usr/bin/xfce4-session-logout ] ; then
xfce4-session-logout --logout
elif [ -x /usr/bin/mate-session-save ] ; then
mate-session-save --force-logout
elif [ -x /usr/bin/startkde ] ; then
# Dies funktioniert für KDE Plasma, ist aber vielleicht zu brutal.
kquitapp5 ksmserver
fi
break
fi
sleep 1
done


signature.asc
Description: PGP signature


Bug#703710: killer CRON disabled on diskless workstations

2014-10-18 Thread Mike Gabriel

Hi Petter,

On  Do 16 Okt 2014 13:58:56 CEST, Petter Reinholdtsen wrote:


The disabling of cron jobs on diskless workstations is done by the
script
/usr/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs in
the debian-edu-config package.  It also, as you say, disable the killer
cron job.  This is the comment on top of that code block:

# Disable the cron jobs that should not be running on a diskless
# workstation.  Keep rwhod, shutdown-at-night and
# sitesummary-client.

Should we run killer on diskless workstations and thin clients?  I am
not sure.


If killer works reliably, then: yes (for diskless workstations).  
Otherwise, diskless workstations (not sure about thin clients,  
actually) will not get affected by shutdown-at-night if users forgot  
to log out.


The expected behaviour would be for diskless workstations:

  o killer ends still-running / not-logged-off sessions after 6h of  
session duration

  o shutdown-at-night turns of the diskless machine within the next hour

Greets,
Mike


--

DAS-NETZWERKTEAM
mike gabriel, herweg 7, 24357 fleckeby
fon: +49 (1520) 1976 148

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

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb


pgpBGAA1cODCE.pgp
Description: Digitale PGP-Signatur


Bug#703710: killer CRON disabled on diskless workstations

2014-10-18 Thread Petter Reinholdtsen
[Mike Gabriel]
 Hi Petter,

Hi.
 If killer works reliably, then: yes (for diskless workstations).

As far as I know, it work reliably.  But not quite like you think it
is working.

 Otherwise, diskless workstations (not sure about thin clients,
 actually) will not get affected by shutdown-at-night if users forgot
 to log out.

Killer will kill processes for people not logged into the machine, not
throw out logged in users.  It get rid of leftover processes.

 The expected behaviour would be for diskless workstations:
 
   o killer ends still-running / not-logged-off sessions after 6h of
 session duration
   o shutdown-at-night turns of the diskless machine within the next hour

I am not sure killer is the autologout-mechanism you are looking for.
shutdown-at-night would work if you had such autologin mechanism.

-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#703710: killer CRON disabled on diskless workstations

2014-10-16 Thread Petter Reinholdtsen

The disabling of cron jobs on diskless workstations is done by the
script
/usr/share/ltsp/plugins/ltsp-build-client/Debian-custom/032-edu-pkgs in
the debian-edu-config package.  It also, as you say, disable the killer
cron job.  This is the comment on top of that code block:

# Disable the cron jobs that should not be running on a diskless
# workstation.  Keep rwhod, shutdown-at-night and
# sitesummary-client.

Should we run killer on diskless workstations and thin clients?  I am
not sure.

-- 
Happy hacking
Petter Reinholdtsen


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#703710: killer CRON disabled on diskless workstations

2013-03-23 Thread Holger Levsen
control: -1 version 1.455

On Freitag, 22. März 2013, Mike Gabriel wrote:
 Package: debian-edu-config
 Version: squeeze-r0

thats not a version of debian-edu-config.

 With a squeeze-r0 installation, the diskless-workstation have a
 disabled killer cronjob (in /etc/cron.daily/killer~disabled).
 Is this intentional?

seems legit, just by judging from the very existence of a file called killer-
disabled ;-)


cheers,
Holger


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#703710: killer CRON disabled on diskless workstations

2013-03-22 Thread Mike Gabriel

Package: debian-edu-config
Version: squeeze-r0

Hi All,

With a squeeze-r0 installation, the diskless-workstation have a  
disabled killer cronjob (in /etc/cron.daily/killer~disabled).


Is this intentional?

Mike

--

mike gabriel aka sunweaver (Debian Developer)
fon: +49 (1520) 1976 148

GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22  0782 9AF4 6B30 2577 1B31
mail: sunwea...@debian.org, http://sunweavers.net




pgphTCoFEQghx.pgp
Description: Digitale PGP-Unterschrift