mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-03-27 07:18:04 +08:00
The sleep-connect-script blocked on both connect and disconnect invocations. When the server shuts down, two disconnect scripts race past the test -f check simultaneously and both sleep 600s, exceeding the test timeout. Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
15 lines
148 B
Bash
Executable File
15 lines
148 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case "$REASON" in
|
|
connect)
|
|
if ! test -f test-sleep.tmp;then
|
|
touch test-sleep.tmp
|
|
sleep 600
|
|
fi
|
|
;;
|
|
disconnect)
|
|
;;
|
|
esac
|
|
|
|
exit 0
|