systemd makes this difficult for many reasons. i'm sure it can be done, but i'm still not sure how to do it in a way that handles all of the many incompatible systemd variations.
if you use init.d, then the file /etc/default/weewx specifies the weewx instances and it just works.
perhaps we could use /etc/default/weewx as 'truth' and have the postinst run systemd-specific stuff run using whatever is declared in the defaults.
the systemd masking and enabling/disabling is also fraught with inconsistencies across platforms. redhat does it one way, debian does it another.
openvpn is another software that can make extensive use of multiple instances, and in my experience that integration with systemd is still not so great. its fine for one-off, manually-managed systems, but falls over when it comes to upgrades and dependencies. also, there are now many conflicting guides about how to set up openvpn instances.
if someone has an example of software that runs multiple instances and works with systemd and init.d without a ton of systemd-specific coding, please post a reference!
> --
> You received this message because you are subscribed to the Google Groups "weewx-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
weewx-user+...@googlegroups.com.
> To view this discussion visit
https://groups.google.com/d/msgid/weewx-user/b5f1909e-512f-4843-9cae-427510f0dc72n%40googlegroups.com.