title: Complex restart of group of units within systemd
body: <p>My app consists of haproxy unit and 5 units of app itself (app@1, app@2, etc).</p>
  
  <p>I have a bash script for restarting</p>
  
  <pre><code>systemctl reload hapoxy
  echo "disable server myapp/app-1" | socat stdio /var/run/haproxy-admin
  systemctl restart 'app@1'
  echo "enable server myapp/app-1" | socat stdio /var/run/haproxy-admin
  echo "disable server myapp/app-2" | socat stdio /var/run/haproxy-admin
  systemctl restart 'app@2'
  echo "enable server myapp/app-2" | socat stdio /var/run/haproxy-admin
  ...
  cache warm-up
  other stuff
  </code></pre>
  
  <p>But I'm wondering, is there a way to run restart through systemd?</p>
  
  <p>P.S. I have myapp.target with those units and haproxy as a dependencies, but target files don't have a restart command.</p>