Tomcat-Webmin-Module/restart.cgi

16 lines
336 B
Plaintext
Raw Permalink Normal View History

2024-01-29 16:57:45 +00:00
#!/usr/bin/perl
# restart.cgi
# Restart the tomcat daemon
require './tomcat-lib.pl';
&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("");