Skip to content

Multiple config instances #568

@komacke

Description

@komacke

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions