In reality this is not possible. All units have common options. We need at least a documentation update.
Further it is a good feature to support individual options. This is especially desirable since cargo-deb adds snippets for all service files it finds in assets even if they are not mentioned in system-units, meaning there is no way to stop cargo-deb from generating snippets for a specific unit file if I don't want it to. My package has multiple unit files and only one of them need to be started post-install.
Thank you for looking into this. I can submit a patch if this is a feature you are willing to support.
The documentation at https://github.com/kornelski/cargo-deb/blob/main/systemd.md has following snippet:
This seems to indicate that it is possible to enable or disable the unit file independently. That is the following configuration is possible:
In reality this is not possible. All units have common options. We need at least a documentation update.
Further it is a good feature to support individual options. This is especially desirable since cargo-deb adds snippets for all service files it finds in
assets
even if they are not mentioned insystem-units
, meaning there is no way to stop cargo-deb from generating snippets for a specific unit file if I don't want it to. My package has multiple unit files and only one of them need to be started post-install.Thank you for looking into this. I can submit a patch if this is a feature you are willing to support.