mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use killbyname() instead of mwexec/killall directly.
This commit is contained in:
parent
d499c12bc0
commit
1fea67419a
@ -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']) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user