2016-07-02 2:44 GMT+02:00 Lennart Poettering <[email protected]>: > On Fri, 01.07.16 14:44, [email protected] > ([email protected]) wrote: > >> My postgresql.service is this: (unmodified file) >> [Unit] >> Description=PostgreSQL RDBMS >> >> [Service] >> Type=oneshot >> ExecStart=/bin/true >> ExecReload=/bin/true >> RemainAfterExit=on >> >> [Install] >> WantedBy=multi-user.target > > Hmm, not sure how postgresql is setup on your distro, but the above > unit file is pretty much a nop. How does your [email protected] > template unit file look like though?
I guess all the [email protected] files declare a PartOf=postgres.service and have [Install]WantedBy=postgres.service. This way systemctl start/stop/restart/reload postgresql.service will forward that to all instances. A target would probably be more suited for that, but targets currently have limitations (e.g. regarding forwarding reload) so this doesn't work and one has to misuse such a nop service. Regards, Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth? _______________________________________________ systemd-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/systemd-devel
