#!/usr/local/bin/perl
# restart.cgi
# Restart the running named

require './bind8-lib.pl';
&ReadParse();
%access = &get_module_acl();
$access{'ro'} && &error($text{'restart_ecannot'});
$access{'apply'} || &error($text{'restart_ecannot'});
&kill_logged('HUP', $in{'pid'}) ||
	&error(&text('restart_esig', $in{'pid'}, $!));
&webmin_log("apply");
&redirect("");

