spitfire05/portproxy

Windows service support

Closed this issue · 1 comments

Portproxy should support running as win service. Possibly with baked-in automated service installation.

This would need a change in how we search for a config file. Default ~/.config/portproxy.toml or PORTPROXY_CONFIG env var would not b a best choice for a win service, therefore the current proposal is to search config in following order (first found "wins"):

  1. Value of $PORTPROXY_CONFIG if set
  2. ./portproxy.toml / ./config.toml relative to exe dir.
  3. ~/.config/portproxy.toml

The actual win service functionality can be achieved by using a 3rd party wrapper like Shawl