i have two custom targets A
and B
:
A.target
:
Description=A
Requires=multi-user.target
Wants=
Conflicts=B.target
After=multi-user.target
AllowIsolate=yes
B.target
:
Description=B
Requires=multi-user.target
Wants=
Conflicts=A.target
After=multi-user.target
AllowIsolate=yes
If A
is isolated, services in A
are started, services in B
are stopped and the other way round. That's good so far.
Problem:
Whenever i switch from A
to B
or B
to A
, all services in multi-user.target
are restarted.
How can i prevent this?