mirror of
https://github.com/OpenVPN/openvpn.git
synced 2024-09-20 03:52:28 +02:00
06c7ce5d1f
Change-Id: I1b54da258c7d15551b6c3de7522a0d19afdb66de Signed-off-by: Samuli Seppänen <samuli.seppanen@gmail.com> Acked-by: Frank Lichtenheld <frank@lichtenheld.com> Message-Id: <20240613081422.139493-1-frank@lichtenheld.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28750.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
12 lines
381 B
Bash
Executable File
12 lines
381 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Stop the parent process (openvpn) gracefully after a small delay
|
|
|
|
# Determine the OpenVPN PID from its pid file. This works reliably even when
|
|
# the OpenVPN process is backgrounded for parallel tests.
|
|
MY_PPID=`cat $pid`
|
|
|
|
# Allow OpenVPN to finish initializing while waiting in the background and then
|
|
# killing the process gracefully.
|
|
(sleep 5 ; kill -15 $MY_PPID) &
|