summaryrefslogtreecommitdiffstats
path: root/40-openvpn
blob: 1306113fe3ecbf61061bc74d32260c89e16509c8 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

case "${reason}" in
	BOUND|REBIND|REBOOT|RENEW|TIMEOUT|STATIC)
		# send openvpn processes SIGUSR1 and make them reconnect
		if pgrep -x openvpn >/dev/null; then
			kill -USR1 $(pgrep -x openvpn)
		fi
		;;
	PREINIT|EXPIRE|INFORM|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP)
		# do nothing here...
		;;
esac