kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
431 stars 52 forks source link

Systemd service-name does not respect variant `name` option #150

Open brocaar opened 2 weeks ago

brocaar commented 2 weeks ago

I have a similar use-case as #86. I have one package for which I would like to distribute two versions. Example:

    [package.metadata.deb.variants.postgres]
      name = "example"

    [package.metadata.deb.variants.sqlite]
      example = "example-sqlite"

This correctly generates two .deb packages named:

However, it generates two systemd services:

Expected behavor:

I would expect example and example-sqlite as systemd service-names.