summaryrefslogtreecommitdiff
path: root/bin/apache.export
diff options
context:
space:
mode:
Diffstat (limited to 'bin/apache.export')
-rwxr-xr-xbin/apache.export4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/apache.export b/bin/apache.export
index f0a6bee..47863a9 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);
}