-
Notifications
You must be signed in to change notification settings - Fork 137
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
[Feature] Support windows service setup for pueued
#344
Comments
This is most definitely because running pueued as a service in Windows environments hasn't been supported/thought off yet! As I'm only owning a Linux machine, I rely on the community to implement Windows/Mac specific logic and find such issues :) It would be great, if you could take a look on how to implement this! Especially since you seem to be quite knowleadable about this topic and already did some research on how to do this :). |
I'm less active on my PC in summer, I might take this as a winter project then! If I didn't come up with something until November, feel free to ping me! Cheers! |
pueued
pueued
pueued
I'm not sure if this is something different but I've been using |
I think the idea is to, for instance, start pueued on startup as a windows system/user service. The same is achieved via a systemd user service on linux systems that run systemd. |
Huhu, I'm in the middle of some other project and won't be able to work on it anytime soon. If someone feels like doing this, feel free. I have it still in mind, but just can't right now. Cheers <3 |
I'm not too sure if this fits your needs but could you for instance use something like Task scheduler? There's a way for you to define a task to run on-boot by making a simple XML file (see here). There's a few other ways listed but this seems to be the easiest. |
pueued
pueued
pueued
pueued
You can do the following on Windows: Press Windows+R and type
Disclaimer: I have no idea about vbs, the script is just something I copied from somewhere. |
You can also add a shortcut into Sure this will open a command line window in the foreground, but you can start it minimized. Not ideal but works for me. |
adding |
Hi! As this issue has been opened for a while, I add a section in https://github.com/Nukesor/pueue/wiki/Common-Pitfalls-and-Debugging. If anyone resolves #344 or #442, please consider update the wiki.
|
I was about to open a similar issue to add this info to the quickstart guide. This is the path I tried (mostly to give more info to Nukesor): NONE OF THESE ARE WORKINGUsing a windows service
Using Shawl
If I get this right the solution would be to have a custom |
Is there any news about this? |
Nope, to my knowledge, nobody started working on this. |
This most certainly would solve all the bugs in one fell swoop. The actual implementation of the service is not difficult at all actually. It doesn't even require a custom Edit: Ahhh, my bad, it seems this was already mentioned! 😅 In any case, Nukesor, the implementation would be similar to this: On Windows there are 2 extra flags
* When the service is installed, you cannot move the Thoughts?
Edit: It might be possible to just hack this process with process creation flags to stop it from quitting on us too. But I still think the service approach is the proper one. |
Hmm. In general, I would like Pueue to be integrated into the native OS's service system.
So I would go for the Thanks for the research, much appreciated. Maybe we'll finally be able to close this ticket after a few years :D |
Actually, despite how this looks, it is actually trivial to do. It this will be pretty easy for me to knock out in a few hours 😄 I have a vested interest in seeing this get fixed since it annoyed me lol, so I'm just gonna PR this.
Got it. I'll do it this way then. Would you like the flag hidden or shown in the help with appropriate description? It's internal anyways, so hiding it has no downsides. |
I would go ahead and show the flag with a appropriate description. As long as it's clear from the description that it shouldn't be consumed by the user, I'm fine with it being visible :) |
The windows service is done now and works great (see #567). I would appreciate it if others would do some testing however, just as a final check. |
Will review soonish :) Currently on holiday for the next two weeks ^^ |
Wow, @MolotovCherry thank you so much for taking care of this. And have a great, enjoyable and recovering holiday @Nukesor! :) |
Add windows service functionality #344
Implemented by @MolotovCherry in #567 :) This will be in the 4.0 release. That release still needs a bit of work, but it's on the horizon :D |
First, I was unsure if this would be a bug report or a feature request.
But as pueued says in the help text:
It should be easy to set up a service.
Describe the bug
Created Windows services time out, because (this is what I assume)
pueued
misses handling of Windows service events.Steps to reproduce the bug
Et voilà, this should be it.
Start-Service pueued
it times out.pueued
doesn't handle the Windows service events.Expected behaviour
pueued
should be easy to set up as a service.Logs/Output
Which is most likely a related error to
Because I see it timing out in
services.msc
.Additional context
Useful crates
The text was updated successfully, but these errors were encountered: