-
Notifications
You must be signed in to change notification settings - Fork 76
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
Windows service support #18
Comments
This one is finicky. You probably need a wrapper because Windows isn't file-based.
|
You can use powershell (and batch, if you're crazy) to add new windows services. See Powershell's Basically, get some credentials ( You can also do it with the older My idea here is that pleaserun for windows will create a powershell script to run that installs the service; powershell for reusability outside the host generating it ;) |
is there no way to call the .Net API behind New-Service directly, rather than relying on Powershell as a mediator? |
@igalic My thoughts on this were that pleaserun should output a thing you can install somewhere else. So, if pleaserun can only be run on the system you are installing a service on, I think it misses a useful case where you could package a 'service'. For example, we could package an init script or a systemd service configuration, so I think it makes sense to be able to provide a packagable windows service output, and that probably means a powershell script or something exportable to the host you want to run it on. At least, that's my thinking, anyway. A long-term project idea is to have a webapp that you can say "Make me a service configuration that does X" and it hands you a script to do it. If pleaserun was required to run on your system itself, this would fall down a bit ;) |
No description provided.
The text was updated successfully, but these errors were encountered: