Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[stunnel-users] Stunnel as windows service doesn't start on restart.

585 views
Skip to first unread message

John Smith

unread,
Sep 12, 2014, 12:57:21 PM9/12/14
to

Running stunnel 5.03 on Windows 2008 R2.

Everything is installed and working fine. I can even start/stop the service no problem... (Pretty sure the service is set to start Automatically)

When I reboot my server stunnel service shows as started but nothing gets logged and none of my connections work. Once I restart the service through service manager, everything works. So on startup it doesn't seem to run...

This only happens if i reboot the machine.


I also asked the same question here: http://serverfault.com/questions/627932/stunnel-as-windows-service-doesnt-start-on-reboot

Output of my logs proving it works.

2014.09.11 15:57:48 LOG5[1612]: stunnel 5.03 on x86-pc-msvc-1500 platform
2014.09.11 15:57:48 LOG5[1612]: Compiled/running with OpenSSL 1.0.1i-fips 6 Aug 2014
2014.09.11 15:57:48 LOG5[1612]: Threading:WIN32 Sockets:SELECT,IPv6 SSL:ENGINE,OCSP,FIPS
2014.09.11 15:57:48 LOG5[1612]: Reading configuration from file stunnel.conf
2014.09.11 15:57:48 LOG5[1612]: FIPS mode disabled
2014.09.11 15:57:49 LOG5[1612]: Configuration successful

Carter Browne

unread,
Sep 12, 2014, 1:10:44 PM9/12/14
to
Did you select the delayed start option on the service?� I have found that necessary in Windows 7/Windows server 2008 r2 and later

Carter Browne
cbr...@cbcs-usa.com
On 9/12/2014 12:57 PM, John Smith wrote:

Running stunnel 5.03 on Windows 2008 R2.

Everything is installed and working fine. I can even start/stop the service no problem... (Pretty sure the service is set to start Automatically)

When I reboot my server stunnel service shows as started but nothing gets logged and none of my connections work. Once I restart the service through service manager, everything works. So on startup it doesn't seem to run...

This only happens if i reboot the machine.


Output of my logs proving it works.

2014.09.11 15:57:48 LOG5[1612]: stunnel 5.03 on x86-pc-msvc-1500 platform
2014.09.11 15:57:48 LOG5[1612]: Compiled/running with OpenSSL 1.0.1i-fips 6 Aug 2014
2014.09.11 15:57:48 LOG5[1612]: Threading:WIN32 Sockets:SELECT,IPv6 SSL:ENGINE,OCSP,FIPS
2014.09.11 15:57:48 LOG5[1612]: Reading configuration from file stunnel.conf
2014.09.11 15:57:48 LOG5[1612]: FIPS mode disabled
2014.09.11 15:57:49 LOG5[1612]: Configuration successful


_______________________________________________
stunnel-users mailing list
stunne...@stunnel.org
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users

John Smith

unread,
Sep 12, 2014, 1:13:46 PM9/12/14
to
Where is the delayed start option?

On 12 September 2014 13:10, Carter Browne <cb...@comcast.net> wrote:
Did you select the delayed start option on the service?  I have found that necessary in Windows 7/Windows server 2008 r2 and later


Carter Browne
cbr...@cbcs-usa.com
On 9/12/2014 12:57 PM, John Smith wrote:

Running stunnel 5.03 on Windows 2008 R2.

Everything is installed and working fine. I can even start/stop the service no problem... (Pretty sure the service is set to start Automatically)

When I reboot my server stunnel service shows as started but nothing gets logged and none of my connections work. Once I restart the service through service manager, everything works. So on startup it doesn't seem to run...

This only happens if i reboot the machine.


Output of my logs proving it works.

2014.09.11 15:57:48 LOG5[1612]: stunnel 5.03 on x86-pc-msvc-1500 platform
2014.09.11 15:57:48 LOG5[1612]: Compiled/running with OpenSSL 1.0.1i-fips 6 Aug 2014
2014.09.11 15:57:48 LOG5[1612]: Threading:WIN32 Sockets:SELECT,IPv6 SSL:ENGINE,OCSP,FIPS
2014.09.11 15:57:48 LOG5[1612]: Reading configuration from file stunnel.conf
2014.09.11 15:57:48 LOG5[1612]: FIPS mode disabled
2014.09.11 15:57:49 LOG5[1612]: Configuration successful
_______________________________________________
stunnel-users mailing list
stunne...@stunnel.org
https://www.stunnel.org/cgi-bin/mailman/listinfo/stunnel-users

John Smith

unread,
Sep 12, 2014, 1:14:46 PM9/12/14
to
Never mind found it... Will try it and let you know :)

John Smith

unread,
Sep 12, 2014, 1:35:21 PM9/12/14
to
Works like a charm! :) 

As an off topic, do you know what the registry key is for the delayed time to bring it down from two minutes to something shorter?

Carter Browne

unread,
Sep 12, 2014, 1:56:21 PM9/12/14
to
Sorry, I don't know what it is.
Carter Browne
cbr...@cbcs-usa.com

John Smith

unread,
Sep 12, 2014, 4:31:40 PM9/12/14
to
No. When setting a service to Automatic (Delayed Start) windows will wait 2:00 minutes after it has completed booting to start the service that was specified as "Delayed".

On 12 September 2014 16:25, WNSDEV <pe...@wnsdev.com> wrote:

You mean the DNS delay or something else. 

Pete

John Smith

unread,
Sep 15, 2014, 11:01:03 AM9/15/14
to
Yeah I had tried that but maybe I picked the wrong services lol I picked some TCPIP service but don't remember exactly.

But I suppose this is worth official documenting?





On 12 September 2014 19:41, <jos...@rocketmail.com> wrote:

Perhaps you can also create a dependency for stunnel service on another service that requires TCP/IP up, like the DNS client. That can make your stunnel service available sooner.

Dependencies can be created with sc utility.


-----Original Message-----
From: John Smith <java.d...@gmail.com>
Sender: "stunnel-users" <stunnel-us...@stunnel.org>
Date: Fri, 12 Sep 2014 16:31:40
To: WNSDEV<pe...@wnsdev.com>
Cc: <stunne...@stunnel.org>
Subject: Re: [stunnel-users] Stunnel as windows service doesn't start on
        restart.

Jose Alf.

unread,
Sep 17, 2014, 10:13:33 AM9/17/14
to
John,

Regarding stunnel service dependencies, If you read the 5.04 beta announcement, the dependency is created automatically now when you install stunnel as a service. Please give it a try. Looks like it works for me.

Thanks to Mike for implementing that.

Michal Trojnara

unread,
Sep 17, 2014, 5:10:51 PM9/17/14
to
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jose Alf. wrote:
> Regarding stunnel service dependencies, If you read the 5.04 beta
> announcement, the dependency is created automatically now when you
> install stunnel as a service. Please give it a try. Looks like it
> works for me.
>
> Thanks to Mike for implementing that.

Thank you for testing it.

Best regards,
Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iEYEARECAAYFAlQZ+NsACgkQ/NU+nXTHMtGdAgCdFUQ6YWXDdE0g4ZNoys3DSR0Q
yLoAnRgo4jKIzb93fzEZcV79eoAQLXMR
=+xFQ
-----END PGP SIGNATURE-----

John Smith

unread,
Sep 18, 2014, 4:15:07 PM9/18/14
to
For now i'm happy with 5.03 Already in production so I will have to wait next time! :)
0 new messages