diff options
author | ivan <ivan> | 2004-05-06 22:29:24 +0000 |
---|---|---|
committer | ivan <ivan> | 2004-05-06 22:29:24 +0000 |
commit | 226b17bfa055fb960b722c6a17d1c81bb8970f2c (patch) | |
tree | 7697fe9408b2e4a7c504583817cea6f02b7c2635 /bin/apache.export | |
parent | 47ac05fedd2437ff079223b39934fd4bf0870df5 (diff) |
add option to change the restart command in apache exports
Diffstat (limited to 'bin/apache.export')
-rwxr-xr-x | bin/apache.export | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/apache.export b/bin/apache.export index f0a6beefc..47863a9d5 100755 --- a/bin/apache.export +++ b/bin/apache.export @@ -51,7 +51,9 @@ foreach my $export ( @exports ) { } ) or die "rsync to $machine failed: ". join(" / ", $rsync->err); # warn $rsync->out; - ssh("root\@$machine", 'apachectl graceful'); + my $restart = $export->option('restart') || 'apachectl graceful'; + + ssh("root\@$machine", $restart); } |