Thread overview
Windows Service
Nov 14, 2018
Thomas
Nov 15, 2018
Soulsbane
Nov 15, 2018
Thomas
November 14, 2018
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

November 15, 2018
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.
November 15, 2018
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!