mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
20 lines
336 B
Perl
Executable File
20 lines
336 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# stop.cgi
|
|
# Stop OpenSLP
|
|
|
|
require './slp-lib.pl';
|
|
if ($config{'stop_cmd'}) {
|
|
$out = &backquote_logged("$config{'stop_cmd'} 2>&1");
|
|
&error_setup($text{'stop_err'});
|
|
if ($?) {
|
|
&error("<pre>$?\n$out</pre>");
|
|
}
|
|
}
|
|
else {
|
|
$pid = &slpd_is_running();
|
|
kill('TERM', $pid);
|
|
}
|
|
&webmin_log("stop");
|
|
&redirect("");
|
|
|