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

Contents of /rpms/smeserver-libreswan/contribs9/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)
Thu Jan 30 14:37:35 2020 UTC (4 years, 3 months ago) by jcrisp
Branch: MAIN
CVS Tags: smeserver-libreswan-0_5-33_el6_sme, smeserver-libreswan-0_5-32_el6_sme, smeserver-libreswan-0_5-34_el6_sme, HEAD
* Thu Jan 30 2020 John Crisp <jcrisp@safeandsoundit.co.uk> 0.5-32.sme
- Fix xl2tpd status check

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