Re: Windows Service

2018-11-14 Thread Thomas via Digitalmars-d-learn

On Thursday, 15 November 2018 at 04:45:26 UTC, Soulsbane wrote:

On Wednesday, 14 November 2018 at 19:38:08 UTC, Thomas wrote:

Hi,

I want to run a D program as a Windows service. After 
googl'in, I only found a very old project on github:

https://github.com/tylerjensen/WindowsServiceInD

Unfortunately, I wasn't able to compile it successfully.
Does anybody know of newer approaches or even a template to 
start from?


Thanks in advance,
Thomas


There is https://code.dlang.org/packages/daemonize
I've only played with it a little on the Linux side so I'm not 
sure how good the windows service implementation is.


I have just successfully compiled and started the hello-world 
example. It works (after fixing a small error) in Windows as well.

Thanks a lot!



Re: Windows Service

2018-11-14 Thread Soulsbane via Digitalmars-d-learn

On Wednesday, 14 November 2018 at 19:38:08 UTC, Thomas wrote:

Hi,

I want to run a D program as a Windows service. After googl'in, 
I only found a very old project on github:

https://github.com/tylerjensen/WindowsServiceInD

Unfortunately, I wasn't able to compile it successfully.
Does anybody know of newer approaches or even a template to 
start from?


Thanks in advance,
Thomas


There is https://code.dlang.org/packages/daemonize
I've only played with it a little on the Linux side so I'm not 
sure how good the windows service implementation is.