[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#662843: debian-edu-config: Cron job to clean up LTSP swap files do not work



Hi Petter,

On Di 06 Mär 2012 20:06:28 CET Petter Reinholdtsen wrote:


Package: debian-edu-config
Version: 1.446
Severity: important

I just discovered that this code in
/usr/share/debian-edu-config/tools/nbdswap-cleanup do not work.

  # exit if its already running
  # (this shouldnt happen - but will happen if lsof hangs)
  ps fax|grep -v grep|grep $0 && exit 0

This code will always exit as the script will see itself as running and
stop.  Not quite sure how to best fix this.

We have a similar piece code (Perl) in x2gothinclient:
http://code.x2go.org/gitweb?p=x2gothinclient.git;a=blob;f=x2gothinclient/sbin/x2gothinclientd;h=49e04a985623a5314e3445701d587d44f7a4a1bb;hb=7108aa320b81f2328d4d334e0a52f144500c21fd

Please see the check_client function in the script referred to by the above link.

Greets,
Mike


--

DAS-NETZWERKTEAM
mike gabriel, dorfstr. 27, 24245 barmissen
fon: +49 (4302) 281418, fax: +49 (4302) 281419

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

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

Attachment: pgpN1Oak7a1Ux.pgp
Description: Digitale PGP-Unterschrift


Reply to: