From 226b17bfa055fb960b722c6a17d1c81bb8970f2c Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 6 May 2004 22:29:24 +0000 Subject: add option to change the restart command in apache exports --- bin/apache.export | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/apache.export') 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); } -- cgit v1.1