Files
ocserv/tests/sleep-connect-script
Nikos Mavrogiannopoulos ebe7c3bfb4 tests: added test to check whether server blocks if script blocks
This test verifies that the server will continue to operate
even if the up script will block indefinitely.

Resolves: #241

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
2020-02-07 22:46:21 +01:00

16 lines
145 B
Bash
Executable File

#!/bin/sh
if ! test -f test-sleep.tmp;then
touch test-sleep.tmp
sleep 600
fi
case "$REASON" in
connect)
;;
disconnect)
;;
esac
exit 0