epoptes team mailing list archive
-
epoptes team
-
Mailing list archive
-
Message #00840
Re: [Question #197285]: Configuring Epoptes in my school - DHCP WIFI LAN
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.