Revision 6df0114b
Added by Doktor Notor over 8 years ago
src/etc/inc/vslb.inc | ||
---|---|---|
179 | 179 |
if (!function_exists('filter_expand_alias_array')) { |
180 | 180 |
require_once("filter.inc"); |
181 | 181 |
} |
182 |
require_once("util.inc"); |
|
182 | 183 |
|
183 | 184 |
$vs_a = $config['load_balancer']['virtual_server']; |
184 | 185 |
$pool_a = $config['load_balancer']['lbpool']; |
... | ... | |
382 | 383 |
if (is_process_running('relayd')) { |
383 | 384 |
if (!empty($vs_a)) { |
384 | 385 |
if ($kill_first) { |
385 |
mwexec('pkill relayd');
|
|
386 |
sigkillbyname("relayd", "TERM");
|
|
386 | 387 |
/* Remove all active relayd anchors now that relayd is no longer running. */ |
387 | 388 |
cleanup_lb_anchor("*"); |
388 | 389 |
mwexec("/usr/local/sbin/relayd -f {$g['varetc_path']}/relayd.conf"); |
... | ... | |
398 | 399 |
* mwexec('/usr/local/sbin/relayctl stop'); |
399 | 400 |
* returns "command failed" |
400 | 401 |
*/ |
401 |
mwexec('pkill relayd');
|
|
402 |
sigkillbyname("relayd", "TERM");
|
|
402 | 403 |
/* Remove all active relayd anchors now that relayd is no longer running. */ |
403 | 404 |
cleanup_lb_anchor("*"); |
404 | 405 |
} |
Also available in: Unified diff
vslb.inc - Add missing include, use sigkillbyname()