webmin/postgresql/stop.cgi
2007-04-12 20:24:50 +00:00

14 lines
284 B
Perl
Executable File

#!/usr/local/bin/perl
# stop.cgi
# Stop the PostgreSQL database server
require './postgresql-lib.pl';
&error_setup($text{'stop_err'});
$access{'stop'} || &error($text{'stop_ecannot'});
$err = &stop_postgresql();
&error($err) if ($err);
sleep(2);
&webmin_log("stop");
&redirect("");