mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 09:04:39 +00:00
services: always restart radvd on configure for #1551
This commit is contained in:
parent
de1e979f21
commit
829e0aa268
@ -100,11 +100,12 @@ function get_pppoes_child_interfaces($ifpattern)
|
||||
return $if_arr;
|
||||
}
|
||||
|
||||
/* implement ipv6 route advertising deamon */
|
||||
function services_radvd_configure($blacklist = array())
|
||||
{
|
||||
global $config;
|
||||
|
||||
killbypid('/var/run/radvd.pid', 'TERM', true);
|
||||
|
||||
if (!isset($config['dhcpdv6']) || !is_array($config['dhcpdv6'])) {
|
||||
$config['dhcpdv6'] = array();
|
||||
}
|
||||
@ -309,14 +310,8 @@ function services_radvd_configure($blacklist = array())
|
||||
|
||||
file_put_contents('/var/etc/radvd.conf', $radvdconf);
|
||||
|
||||
if (count($radvdifs) > 0) {
|
||||
if (isvalidpid('/var/run/radvd.pid')) {
|
||||
killbypid('/var/run/radvd.pid', 'HUP');
|
||||
} else {
|
||||
mwexec('/usr/local/sbin/radvd -p /var/run/radvd.pid -C /var/etc/radvd.conf -m syslog');
|
||||
}
|
||||
} else {
|
||||
killbypid('/var/run/radvd.pid', 'TERM', true);
|
||||
if (count($radvdifs)) {
|
||||
mwexec('/usr/local/sbin/radvd -p /var/run/radvd.pid -C /var/etc/radvd.conf -m syslog');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user