Skip to content

Commit

Permalink
mxstartup2mxconfig: Always overwrite config files
Browse files Browse the repository at this point in the history
It is save to overwrite config files with current information.

This fixes a bug, were an ip address was not set
until mxvipctl was started twice.
  • Loading branch information
mariux committed Nov 19, 2012
1 parent 4bb74e3 commit 8fc9fb4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions mxstartup2mxconfig
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,6 @@ sub save_config_mxservice {

my $config = "$rundir/mxservice.$name.cfg";

if( -e $config) {
printf "skipping creation of $config: File already exists\n";
return;
}

printf "mxservice::$name creating service-config: $config\n";

open SCRIPT, ">", "$config" or die "can't open $config: $!";
Expand All @@ -189,11 +184,6 @@ sub print_ips_cfg {

my $script = "$rundir/mxvip.$name.cfg";

if( -e $script) {
printf "skipping creation of $script: File already exists\n";
return;
}

printf "mxvip::$name creating start script: $script\n";

open SCRIPT, ">", "$script" or die "can't open $script: $!";
Expand Down

0 comments on commit 8fc9fb4

Please sign in to comment.