GeoHelm/geoserver/restart.cgi

15 lines
307 B
Perl

#!/usr/bin/perl
require './geoserver-lib.pl'; #require
&ReadParse();
&error_setup($text{'restart_err'});
my ($rc, $err) = tomcat_service_ctl('restart');
if ($rc != 0){
&ui_print_header(undef, $text{'index_title'}, "");
&error($err);
&ui_print_footer("", $text{'index_return'});
exit;
}
&redirect("");