[systemd-devel] run no more than one of foo at .service at a time

Johannes Ernst johannes.ernst at gmail.com
Mon Oct 5 09:04:51 PDT 2015


I have a foo at .service. When started as
	systemctl start foo at abc
I’d like all other currently active foo@… services to stop, and vice versa. All of the foo at .services are supposed to be mutually exclusive with each other.

In foo at .service, I attempted:
	Conflicts: foo at .service
but that does not seem to do the trick (Starting foo at abc produces "Dependency Conflicts=foo at abc.service dropped”)

I’d like to avoid having to enumerate foo at abc, foo at def etc. in the Conflicts section.

Ideas?

Thanks,



Johannes.



More information about the systemd-devel mailing list