#!/usr/local/bin/perl
# stop.cgi
# Stop the processes started by /var/qmail/rc

require './qmail-lib.pl';
if ($config{'stop_cmd'}) {
	&system_logged("( $config{'stop_cmd'} ) >/dev/null 2>&1 </dev/null &");
	}
else {
	&kill_byname_logged("qmail-send", TERM) || &error($text{'stop_err'});
	}
&webmin_log("stop");
&redirect("");

