Rob Townley
2013-Jan-13 23:06 UTC
tinc 1.1pre4 on Win7x64 --mlock prevents service from starting
c:\APPS\TINC\tincd.exe --mlock --net=mynet --config=C:\APPS\tinc\mynet Without --mlock, the service starts OK. With --mlock, the service fails to start.
Guus Sliepen
2013-Jan-14 10:30 UTC
tinc 1.1pre4 on Win7x64 --mlock prevents service from starting
On Sun, Jan 13, 2013 at 05:06:57PM -0600, Rob Townley wrote:> c:\APPS\TINC\tincd.exe --mlock --net=mynet --config=C:\APPS\tinc\mynet > > Without --mlock, the service starts OK. > With --mlock, the service fails to start.It should print this error message: mlockall() not supported on this platform Does it not show you that error message? Perhaps the error message should mention you cannot use the "--mlock" option on Windows. In any case, I'll make note in the manual that this option is not supported on all platforms. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20130114/0e7ba437/attachment.pgp>
Rob Townley
2013-Jan-24 04:03 UTC
tinc 1.1pre4 on Win7x64 --mlock prevents service from starting
On Mon, Jan 14, 2013 at 3:46 PM, Guus Sliepen <guus at tinc-vpn.org> wrote:> On Mon, Jan 14, 2013 at 12:15:24PM -0600, Rob Townley wrote: > > > i usually import a tincd.reg file with the --debug and --mlock and > > --log parameters. When tinc.myvpn is started from services.msc or sc > > start tinc.myvpn, the only error is the windows error that tinc could > > not be started. Nothing in EventLog either. > > Ah ok, I see. It should of course write something into the EventLog. > > > The frustrating thing at the moment is that using tincctl.exe stop not > > only stops the service but deletes the service from the registry. It > > recreates it when tincctl.exe start is called, but it prevents > > production use. Is there a way to make it so that the service is not > > deleted when stopped? And when init, it checks if the service exists > > and timeout confirms that you want to overwrite the old service entry? > > What is the problem with the stop and start commands removing/adding the > service from the registry? That is exactly what tinc 1.0.x does as well. > You > can stop/start the service without altering the registry from the service > control panel, I believe. > > Tincctl init never starts or stops a daemon, so it will also not change an > existing service entry. The tincctl start command (or invoking tincd > directly) > will also never overwrite an existing entry. > > -- > Met vriendelijke groet / with kind regards, > Guus Sliepen <guus at tinc-vpn.org> > > _______________________________________________ > tinc mailing list > tinc at tinc-vpn.org > http://www.tinc-vpn.org/cgi-bin/mailman/listinfo/tinc > >Yes, more logging. i will try the new version this week. The tinc service would start up and i could connect albeit with a great deal of latency. But when stopped, the service would get disabled and then deleted. i look forward to 1.1pre5 this week. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20130123/b6606483/attachment-0001.html>
Guus Sliepen
2013-Jan-24 09:55 UTC
tinc 1.1pre4 on Win7x64 --mlock prevents service from starting
On Wed, Jan 23, 2013 at 10:03:19PM -0600, Rob Townley wrote:> > What is the problem with the stop and start commands removing/adding the > > service from the registry? That is exactly what tinc 1.0.x does as well. > > You > > can stop/start the service without altering the registry from the service > > control panel, I believe.[...]> i will try the new version this week. The tinc service would start up and > i could connect albeit with a great deal of latency. But when stopped, the > service would get disabled and then deleted.But what is the problem with the service getting deleted? It will get added again when you do tincctl start. -- Met vriendelijke groet / with kind regards, Guus Sliepen <guus at tinc-vpn.org> -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20130124/c740ba19/attachment.pgp>
Rob Townley
2013-Jan-30 01:01 UTC
tinc 1.1pre4 on Win7x64 --mlock prevents service from starting
On Thu, Jan 24, 2013 at 3:55 AM, Guus Sliepen <guus at tinc-vpn.org> wrote:> On Wed, Jan 23, 2013 at 10:03:19PM -0600, Rob Townley wrote: > >> > What is the problem with the stop and start commands removing/adding the >> > service from the registry? That is exactly what tinc 1.0.x does as well. >> > You >> > can stop/start the service without altering the registry from the service >> > control panel, I believe. > [...] >> i will try the new version this week. The tinc service would start up and >> i could connect albeit with a great deal of latency. But when stopped, the >> service would get disabled and then deleted. > > But what is the problem with the service getting deleted? It will get added > again when you do tincctl start.Requirement is that remote machines ConnectTo the "Server" upon bootup even if a user never logs on.