Skip to content

Multiple config instances #568

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

Open
komacke opened this issue Apr 30, 2025 · 0 comments
Open

Multiple config instances #568

komacke opened this issue Apr 30, 2025 · 0 comments

Comments

@komacke
Copy link

komacke commented Apr 30, 2025

I have multiple configurations for direwolf depending on the application using it. The static sysconfig file is limiting in that way.

I've created a folder /etc/direwolf.d/ where I put the config files. Then I've modified the direwolf.service unit file to support templates in a template unit file named direwolf@.service with this line changed:

ExecStart=/bin/bash -ce "exec /usr/bin/direwolf $DIREWOLF_ARGS -c
/etc/direwolf.d/%i.conf >>/var/log/direwolf/stdout 2>>/var/log/direwolf/stderr"

I believe the template unit file can sit along side the fixed unit file without conflict.

Could you add this second unit file and create/own /etc/direwolf.d in the install packages?

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

1 participant