Пример #1
0
    reconfigure_instance($argv[2]);
    postfix_bubble();
    die;
}
if ($argv[1] == '--instance-relayhost') {
    reconfigure_instance_relayhost($argv[2]);
    postfix_bubble();
    die;
}
if ($argv[1] == '--instance-ssl') {
    reconfigure_instance_ssl($argv[2]);
    postfix_bubble();
    die;
}
if ($argv[1] == '--instance-settings') {
    reconfigure_instance_minimal($argv[2]);
    postfix_bubble();
    die;
}
if ($argv[1] == '--instance-mastercf') {
    reconfigure_instance_mastercf($argv[2]);
    postfix_bubble();
    die;
}
if ($argv[1] == '--clean') {
    remove_old_instances();
    postfix_bubble();
    die;
}
if ($argv[1] == '--mime-header-checks') {
    reconfigure_instance_mime_checks($argv[2]);
Пример #2
0
		echo "Starting......: multi-instances configurator already executed PID ". @file_get_contents($pidfile)."\n";
		die();
	}

	$pid=getmypid();
	echo "Starting......: Postfix multi-instances configurator running $pid\n";
	file_put_contents($pidfile,$pid);	


writelogs("receive ". implode(",",$argv),"MAIN",__FILE__,__LINE__);

if($argv[1]=='--removes'){PostfixMultiDisable();die();}
if($argv[1]=='--instance-reconfigure'){reconfigure_instance($argv[2]);die();}
if($argv[1]=='--instance-relayhost'){reconfigure_instance_relayhost($argv[2]);die();}
if($argv[1]=='--instance-ssl'){reconfigure_instance_ssl($argv[2]);die();}
if($argv[1]=='--instance-settings'){reconfigure_instance_minimal($argv[2]);die();}
if($argv[1]=='--instance-mastercf'){reconfigure_instance_mastercf($argv[2]);die();}
if($argv[1]=='--clean'){remove_old_instances();die();}
if($argv[1]=='--mime-header-checks'){reconfigure_instance_mime_checks($argv[2]);die();}
if($argv[1]=='--from-main-maincf'){die();}
if($argv[1]=='--instance-start'){_start_instance($argv[2]);die();}
if($argv[1]=='--instance-aiguilleuse'){aiguilleuse($argv[2]);die();}
if($argv[1]=='--reload-all'){CheckInstances();die();}
if($argv[1]=='--postscreen'){postscreen($argv[2]);die();}




reconfigure();