diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2008-11-07 22:48:45 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2008-11-07 22:48:45 +0000 |
commit | 3eb583e61740dd938b7aef8401e3c424ee51d482 (patch) | |
tree | eea3aa97d8a09320e77318ff299db0d3c1030501 /etc | |
parent | 0ef026e88b002dd3938434f10c48e1245a868054 (diff) | |
download | pfsense-3eb583e61740dd938b7aef8401e3c424ee51d482.zip pfsense-3eb583e61740dd938b7aef8401e3c424ee51d482.tar.gz |
Only attempt starting relayd when the vs array is not empty
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/vslb.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/vslb.inc b/etc/inc/vslb.inc index 44d0dd6..06a8e38 100644 --- a/etc/inc/vslb.inc +++ b/etc/inc/vslb.inc @@ -262,8 +262,9 @@ function relayd_configure() { */ mwexec('pkill relayd'); } - mwexec("/usr/local/sbin/relayd -f {$g['varetc_path']}/relayd.conf"); - + if (! empty($vs_a)) { + mwexec("/usr/local/sbin/relayd -f {$g['varetc_path']}/relayd.conf"); + } } ?> |