1 |
brianr |
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 2020-01-30 11:04:15.664425377 +0100 |
3 |
|
|
+++ smeserver-libreswan-0.5/root/etc/e-smith/events/actions/ipsec-update 2020-01-30 15:37:03.025862458 +0100 |
4 |
|
|
@@ -84,11 +84,11 @@ |
5 |
|
|
my $xl2tpdService = (`ps ax | grep -v grep | grep xl2tpd`); |
6 |
|
|
|
7 |
|
|
#If the service is not running then start it |
8 |
|
|
- unless ( $xl2tpdService =~ m/_xl2tpd/ ) { |
9 |
|
|
+ unless ( $xl2tpdService =~ m/xl2tpd/ ) { |
10 |
|
|
|
11 |
|
|
- print "Xl2tpd Information - xl2tpd enabled but stopped - starting xl2tpd \n"; |
12 |
|
|
- my $myStartXl2tpd = qx(/etc/rc.d/init.d/xl2tpd start) |
13 |
|
|
- || die("xl2tpd Error - Unable to launch xl2tpd start : $!\n"); |
14 |
|
|
+ print "Xl2tpd Information - xl2tpd enabled but stopped - restarting xl2tpd \n"; |
15 |
|
|
+ my $myStartXl2tpd = qx(/etc/rc.d/init.d/xl2tpd restart) |
16 |
|
|
+ || die("xl2tpd Error - Unable to launch xl2tpd restart : $!\n"); |
17 |
|
|
|
18 |
|
|
if ( not defined $myStartXl2tpd ) { |
19 |
|
|
die("Ipsec Error - Unable to stop xl2tpd( error code $?)\n") if $?; |