Changeset 1252


Ignore:
Timestamp:
Apr 21, 2016, 1:29:23 PM (3 years ago)
Author:
daduve
Message:
 
Location:
epoptes/trunk/fuentes
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • epoptes/trunk/fuentes/debian/changelog

    r966 r1252  
     1epoptes (0.5.9-lliurex1) xenial; urgency=high
     2
     3  * Fix bug in exit session to finish socat connection
     4
     5 -- Daniel Duran Vecino <daduve@gmail.com>  Thu, 21 Apr 2016 13:27:06 +0200
     6
    17epoptes (0.5.9) xenial; urgency=medium
    28
  • epoptes/trunk/fuentes/debian/rules

    r295 r1252  
    1212endif
    1313
     14override_dh_install:
     15        dh_install
     16        mkdir -p debian/epoptes-client/etc/lightdm/ExitSession.d
     17        cp debian/killer-epoptes debian/epoptes-client/etc/lightdm/ExitSession.d/
     18
    1419%:
    1520        dh $@ --with $(PYTHON_VARIANT)
  • epoptes/trunk/fuentes/epoptes-client/epoptes-client

    r295 r1252  
    1 #!/bin/sh
     1#!/bin/bash
    22
    33###########################################################################
     
    228228# Connect to the server, or keep retrying until the server gets online
    229229# (for standalone workstations booted before the server).
     230RUN=1
     231salida(){
     232                RUN=0
     233        }
     234trap salida KILL
     235trap salida TERM
     236trap salida QUIT
     237trap salida INT
     238trap salida STOP
    230239if [ -s /etc/epoptes/server.crt ] || [ "$cert_param" = "verify=0" ]; then
    231     while [ 1 -eq 1 ]; do
     240    while [ ${RUN} -eq 1 ]; do
    232241        socat openssl-connect:$SERVER:$PORT,$cert_param,interval=60,forever EXEC:"$cmdline"
     242        sleep 1
    233243    done;
    234244elif [ -f /etc/epoptes/server.crt ]; then
    235     while [ 1 -eq 1 ]; do
     245    while [ ${RUN} -eq 1 ]; do
    236246        socat tcp:$SERVER:$PORT,interval=60,forever EXEC:"$cmdline",nofork
     247        sleep 1
    237248    done;
    238249else
Note: See TracChangeset for help on using the changeset viewer.