# # Service A and Service B are mutualy exclusive # Service A must also stop when service C is started # stop on starting service_b or starting service_c pre-start script echo starting service_a sleep 10 echo started service_a end script post-stop script echo stopping service_a sleep 10 echo stopped service_a end script console output