[vpn-help] v2.2.0 linux iked stops

Matthew Grooms mgrooms at shrew.net
Thu Apr 25 23:20:42 CDT 2013


Sure enough, I screwed up something in my very last commit before the 
release. I have committed a fix to head and the 2.2 branch. Here is a 
patch that you can apply manually ...

# cd source/iked
# patch < pid.diff

Please let me know if you see any other issues.

-Matthew

On 4/25/2013 9:14 PM, eric xu wrote:
> Hi All,
>
> I am suffering exactly  the same problem (UBUNTU 12.04-LTS). So I have
> to go back with 2.2.0-RC.
>
> Regards,
>
> Eric
>
>  > Date: Thu, 25 Apr 2013 18:27:05 -0400
>  > From: chartley at gta.com
>  > To: vpn-help at lists.shrew.net
>  > Subject: [vpn-help] v2.2.0 linux iked stops
>  >
>  > Hello,
>  >
>  > I am running into an issue with the latest release (2.2.0) of Shrewsoft
>  > VPN Client on Linux and was wondering if anybody else was having this
>  > issue and knew of anyway to resolve and/or diagnose this issue.
>  >
>  > Problem:
>  > iked services does not remain running.
>  >
>  > Example:
>  >
>  > root at ubuntu1204:~# uname -a
>  > Linux ubuntu1204 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC
>  > 2012 x86_64 x86_64 x86_64 GNU/Linux
>  >
>  > root at ubuntu1204:~# iked
>  > ii : created ike socket 0.0.0.0:500
>  > ii : created natt socket 0.0.0.0:4500
>  > ## : IKE Daemon, ver 2.2.0
>  > ## : Copyright 2013 Shrew Soft Inc.
>  > ## : This product linked OpenSSL 1.0.1 14 Mar 2012
>  > ii : opened '/var/log/iked.log'
>  >
>  > root at ubuntu1204:~# ps aux | egrep -i ike[d]
>  >
>  > ps does not show an iked process.
>  >
>  > I am using the source tar from the website.
>  >
>  > I have tested this on clean installs of ubuntu 12.04 (32bit and 64bit)
>  > as well as centos 6.2 (64bit). All show the same behavior.
>  >
>  > There are no errors obvious errors when compiling or running iked, and I
>  > am able to compile and run 2.1.7 without any issues.
>  >
>  > Thank you,
>  > Chris
>  >
>  > _______________________________________________
>  > vpn-help mailing list
>  > vpn-help at lists.shrew.net
>  > https://lists.shrew.net/mailman/listinfo/vpn-help
>
>
> _______________________________________________
> vpn-help mailing list
> vpn-help at lists.shrew.net
> https://lists.shrew.net/mailman/listinfo/vpn-help
>

-------------- next part --------------
Index: source/iked/main.cpp
===================================================================
--- source/iked/main.cpp	(revision 879)
+++ source/iked/main.cpp	(working copy)
@@ -544,8 +544,9 @@
 	// create our pid file
 	//
 
-	if( !daemon_pidfile_create( path_pid ) )
-		return -1;
+	if( path_pid[ 0 ] )
+		if( !daemon_pidfile_create( path_pid ) )
+			return -1;
 
 	//
 	// run daemon main loop
@@ -557,7 +558,8 @@
 	// remove our pidfile
 	//
 
-	daemon_pidfile_remove( path_pid );
+	if( path_pid[ 0 ] )
+		daemon_pidfile_remove( path_pid );
 
 #endif
 


More information about the vpn-help mailing list