kornelski / cargo-deb

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

Add support for multiple systemd file #42

Closed samdolt closed 1 year ago

samdolt commented 2 years ago

After looking at the code and the source, it seems like it's not possible to provide multiple service file. As a package can provide multiple binaries, it can be usefull to have support for multiple service too.

Maybe by using somethings like that in Cargo.toml:

[package.metadata.deb]
maintainer-scripts = "debian/"

[package.metadata.deb.systemd-units]
enable = false
unit-names = ["binaryname1", "binaryname2"]
ximon18 commented 1 year ago

@kornelski: Can this be closed given that a PR related to it was merged?