1 |
jcrisp |
1.1 |
diff -ruN smeserver-libreswan-0.5.old/root/etc/e-smith/events/actions/ipsec-update smeserver-libreswan-0.5/root/etc/e-smith/events/actions/ipsec-update |
2 |
|
|
--- smeserver-libreswan-0.5.old/root/etc/e-smith/events/actions/ipsec-update 2019-10-13 15:53:37.309683246 +0200 |
3 |
|
|
+++ smeserver-libreswan-0.5/root/etc/e-smith/events/actions/ipsec-update 2019-10-13 15:53:46.567138415 +0200 |
4 |
|
|
@@ -78,11 +78,13 @@ |
5 |
|
|
if ( $configDB->get_prop( $ipsecDBkey, 'status' ) eq 'enabled' ) { |
6 |
|
|
|
7 |
|
|
# Sort out xl2tpd - if ipsec is enabled, AND xl2tpd then see if it is started |
8 |
|
|
- if ( $configDB->get_prop( $xl2tpdDBkey, 'status' ) eq 'enabled' ) { |
9 |
|
|
- my $xl2tpdstatus = (`ps ax | grep -v grep | grep xl2tpd`); |
10 |
|
|
+ my $xl2tpdstatus = $configDB->get_prop( $xl2tpdDBkey, 'status' ) || 'disabled'; |
11 |
|
|
+ |
12 |
|
|
+ if ( $xl2tpdstatus eq 'enabled' ) { |
13 |
|
|
+ my $xl2tpdService = (`ps ax | grep -v grep | grep xl2tpd`); |
14 |
|
|
|
15 |
|
|
#If the service is not running then start it |
16 |
|
|
- unless ( $xl2tpdstatus =~ m/_xl2tpd/ ) { |
17 |
|
|
+ unless ( $xl2tpdService =~ m/_xl2tpd/ ) { |
18 |
|
|
|
19 |
|
|
print "Xl2tpd Information - xl2tpd enabled but stopped - starting xl2tpd \n"; |
20 |
|
|
my $myStartXl2tpd = qx(/etc/rc.d/init.d/xl2tpd start) |