Project

General

Profile

« Previous | Next » 

Revision 1dcb00bb

Added by Ermal LUÇI over 11 years ago

Remove remeants of racoon

View differences:

etc/inc/vpn.inc
904 904
		}
905 905
	}
906 906

  
907
	/* send a SIGKILL to be sure */
908
	killbypid("{$g['varrun_path']}/racoon.pid");
909

  
910
	/* wait for process to die */
911
	sleep(4);
912

  
913
	/* kill racoon forcefully */
914
	if (is_process_running("racoon"))
915
		mwexec("/usr/bin/killall -9 racoon", true);
916

  
917
	/* wait for flushing to finish */
918
	sleep(1);
919

  
920 907
	/* if ipsec is enabled, start up again */
921 908
	if (isset($ipseccfg['enable'])) {
922 909
		log_error(gettext("Forcefully reloading IPsec racoon daemon"));

Also available in: Unified diff