When restarting an OpenVPN process, don't send a term signal and expect it to exit within a fixed time frame of two seconds. The old process may take longer to exit and cause the new process creation to fail. Instead, check the process status every 1/4 seconds and only continue once it terminates.
When restarting an OpenVPN process, don't send a term signal and expect it
to exit within a fixed time frame of two seconds. The old process may take
longer to exit and cause the new process creation to fail. Instead, check
the process status every 1/4 seconds and only continue once it terminates.

pfsense/pfsense,dennypage/pfsense,NewEraCracker/pfsense,ptorsten/pfsense,brunostein/pfsense,phil-davis/pfsense,NewEraCracker/pfsense,BlackstarGroup/pfsense,pfsense/pfsense,BlackstarGroup/pfsense,dennypage/pfsense,ch1c4um/pfsense,dennypage/pfsense,NOYB/pfsense,ch1c4um/pfsense,brunostein/pfsense,jxmx/pfsense,NewEraCracker/pfsense,ptorsten/pfsense,brunostein/pfsense,ptorsten/pfsense,pfsense/pfsense,pfsense/pfsense,ch1c4um/pfsense,phil-davis/pfsense,ch1c4um/pfsense,jxmx/pfsense,BlackstarGroup/pfsense,NewEraCracker/pfsense,phil-davis/pfsense,BlackstarGroup/pfsense,dennypage/pfsense,phil-davis/pfsense,NOYB/pfsense,NOYB/pfsense,jxmx/pfsense