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

Allow to start/stop systemd services #11

Closed
shiipou opened this issue Oct 27, 2021 · 4 comments
Closed

Allow to start/stop systemd services #11

shiipou opened this issue Oct 27, 2021 · 4 comments

Comments

@shiipou
Copy link

shiipou commented Oct 27, 2021

Hi there, I really like using your plugin, but now I'm out of docker on some of my services (I use Proxmox)

By using your acouvreur/traefik-ondemand-service out of the docker image, we can start and stop systemd services directly on the host if you make some changes to the code.
That can allow anybody that didn't use traefik inside of docker to use this great plugin, and allow the usage of this plugin for a lot of usage (Start a VM or LXC container, start a local httpd server, start a game server like minecraft, ...)

Because of we can set custom url in each different middleware, it can also be possible to run the ondemand-service directly inside of the VM that can start the service with systemctl start httpd.services

@acouvreur
Copy link
Member

acouvreur commented Oct 27, 2021

Thanks for the request.

By using your acouvreur/traefik-ondemand-service out of the docker image

Do you think that I should publish traefik-ondemand-service binaries as well then ?

can start the service with systemctl start httpd.services

Interesting, I'll take a look if there is an API or if I have to hard code exec.

@shiipou
Copy link
Author

shiipou commented Oct 28, 2021

Do you think that I should publish traefik-ondemand-service binaries as well then ?

Yes just by compiling the exe with go build and publish it in your GitHub Releases

Interesting, I'll take a look if there is an API or if I have to hard code exec.

There is no native API as I know, but probably someone already develop a Go library for it.

@acouvreur
Copy link
Member

I just added the binaries to the current release https://github.com/acouvreur/traefik-ondemand-service/releases/tag/v1.6.0

They weight much more than I thought, if you have any idea to reduce the size, please give me some hints.

They will be auto released on next features acouvreur/traefik-ondemand-service#19

@shiipou
Copy link
Author

shiipou commented Oct 29, 2021

I can look into, but I think that just came from the libs you use in go.mod

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

No branches or pull requests

2 participants