Você pode usar PartOf na seção [Unit] .
Exemplo: PartOf=B.service
Da página man,
PartOf=
Configures dependencies similar to Requires=, but limited to stopping and restarting of units. When systemd stops or restarts the units listed here, the action is propagated to this unit. Note that this is a one-way dependency — changes to this unit do not affect the listed units.