szabodanika / microbin

A secure, configurable file-sharing and URL shortening web app written in Rust.
https://microbin.eu
BSD 3-Clause "New" or "Revised" License
2.65k stars 163 forks source link

Is there a way to start microbin as windows service #77

Closed ket000 closed 1 year ago

ket000 commented 1 year ago

When I reboot the machine, I have to manually start microbin. Like linux, can we have a way to start microbin automatically on reboot using windows service.

abyss commented 1 year ago

There's not native functionality in the application, but you can either add it to automatic startup in Windows, or use something like "NSSM" to create a service wrapper around it. Which you choose depends whether you care about it specifically being a service, or if you just want it to automatically start.

This is true of Linux as well, just the provided example is using systemd as the service manager/wrapper. :)

ket000 commented 1 year ago

https://crates.io/crates/windows-service/0.1.0 can be used for creating windows service. May be some one will document steps to enable microbin as native windows service.