Project

General

Profile

« Previous | Next » 

Revision bc771514

Added by Renato Botelho over 9 years ago

Revert "Use --conf when call ipsec start/stop, this make it work with regular package, without changing sysconfdir"

It's not necessary after creating all symlinks

This reverts commit d92c10130df38e264c7c77367cf0d542d10794c0.

View differences:

src/etc/inc/vpn.inc
1425 1425

  
1426 1426
	/* manage process */
1427 1427
	if ($restart === true) {
1428
		mwexec("/usr/local/sbin/ipsec restart --conf {$g['varetc_path']}/ipsec/ipsec.conf", false);
1428
		mwexec("/usr/local/sbin/ipsec restart", false);
1429 1429
	} else {
1430 1430
		if (isvalidpid("{$g['varrun_path']}/starter.charon.pid")) {
1431 1431
			/* Update configuration changes */
......
1433 1433
			mwexec("/usr/local/sbin/ipsec rereadall", false);
1434 1434
			mwexec("/usr/local/sbin/ipsec reload", false);
1435 1435
		} else {
1436
			mwexec("/usr/local/sbin/ipsec start --conf {$g['varetc_path']}/ipsec/ipsec.conf", false);
1436
			mwexec("/usr/local/sbin/ipsec start", false);
1437 1437
		}
1438 1438
	}
1439 1439

  

Also available in: Unified diff