Question #197285 on Epoptes changed:
https://answers.launchpad.net/epoptes/+question/197285

stasia posted a new comment:
You can modify code to enable the auto reconnect. put comment # on the lines 
that start with "exec" and add some lines as in example below
sudo nano /usr/sbin/epoptes-client

    # Connect to the server, or keep retrying until the server gets online
    # (for standalone workstations booted before the server).
    if [ -s /etc/epoptes/server.crt ] || [ "$cert_param" = "verify=0" ]; then
   #    exec socat 
openssl-connect:$SERVER:$PORT,$cert_param,interval=60,forever EXEC:"$cmdline"
       if [ "$TYPE" = "standalone" ]; then
           while socat 
openssl-connect:$SERVER:$PORT,$cert_param,interval=60,forever EXEC:"$cmdline"; 
do
               log_begin_msg "Connection lost. Epoptes-client reconnecting to 
$SERVER:$PORT..."
           done
       else
           exec socat 
openssl-connect:$SERVER:$PORT,$cert_param,interval=60,forever EXEC:"$cmdline"
       fi
    elif [ -f /etc/epoptes/server.crt ]; then
   #   exec socat tcp:$SERVER:$PORT,interval=60,forever EXEC:"$cmdline",nofork
       if [ "$TYPE" = "standalone" ]; then
           while socat tcp:$SERVER:$PORT,interval=60,forever 
EXEC:"$cmdline",nofork; do
               log_begin_msg "Connection lost. Epoptes-client reconnecting to 
$SERVER:$PORT..."
           done
       else
           exec socat tcp:$SERVER:$PORT,interval=60,forever 
EXEC:"$cmdline",nofork
       fi
    else
        die "
    The epoptes certificate file, /etc/epoptes/server.crt, doesn't exist.
        die "

-- 
You received this question notification because you are a member of
Epoptes Developers, which is an answer contact for Epoptes.

-- 
Mailing list: https://launchpad.net/~epoptes
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~epoptes
More help   : https://help.launchpad.net/ListHelp

Reply via email to