Use killbyname() instead of mwexec/killall directly.

This commit is contained in:
jim-p 2010-06-18 10:36:46 -04:00
parent d499c12bc0
commit 1fea67419a

View File

@ -412,7 +412,7 @@ function prot_change() {
<?php
if ($restart_sshd) {
mwexec("/usr/bin/killall sshd");
killbyname(sshd);
log_error(gettext("secure shell configuration has changed. Stopping sshd."));
if ($config['system']['enablesshd']) {