/[smecontribs]/rpms/smeserver-libreswan/contribs10/smeserver-libreswan-fix-xl2tpd-status-check.patch
ViewVC logotype

Contents of /rpms/smeserver-libreswan/contribs10/smeserver-libreswan-fix-xl2tpd-status-check.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Mon Feb 22 16:03:32 2021 UTC (3 years, 9 months ago) by brianr
Branch: MAIN
CVS Tags: smeserver-libreswan-0_5-36_el7_sme, smeserver-libreswan-0_5-35_el7_sme, HEAD
Initial import

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 $?;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed