Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make script installable as a Windows Service #155

Open
stavros-k opened this issue Jul 2, 2022 · 2 comments
Open

Make script installable as a Windows Service #155

stavros-k opened this issue Jul 2, 2022 · 2 comments
Labels
user-help User needs help

Comments

@stavros-k
Copy link

It would nice to make this script running as windows service.

I don't know if this is still applicable nowdays, as this blog post is quite old.
https://thepythoncorner.com/posts/2018-08-01-how-to-create-a-windows-service-in-python/

Seems that does not need much to be added. But I might be wrong also.

Thanks

@MiguelNdeCarvalho MiguelNdeCarvalho added the user-help User needs help label Sep 11, 2022
@MiguelNdeCarvalho
Copy link
Owner

Hey,

@stavros-k sorry for the late response, I don't understand anything about Windows, isn't it possible for you to use the Docker image? It should work out of the box.

Thanks,
MiguelNdeCarvalho

@stavros-k
Copy link
Author

Hey,

@stavros-k sorry for the late response, I don't understand anything about Windows, isn't it possible for you to use the Docker image? It should work out of the box.

Thanks, MiguelNdeCarvalho

It's possible to run docker on windows yes.
But that means it will create a virtualization layer with Windows Subsystem for Linux (WSL) which will consume at least 2gb ram.

Resources being one of the problems, and the second is that it becomes even harder to mass deploy it to multiple computers (~500, which is my intention).

Even releasing an executable, would be nice. (Which might be far easier than "servicifying" it.) As that would remove the requirement of installing python and it's dependencies!

Then windows users can use software like (nssm)[https://nssm.cc/] or (winsw)[https://github.com/winsw/winsw] to make it a service.

Thanks for taking the time to reply!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-help User needs help
Projects
None yet
Development

No branches or pull requests

2 participants