title: Is there any prerequisite to use before/after in systemd service file?
body: <p>I have two service files and both look like this:</p>
  
  <pre><code>[Unit]
  Description=A service
  [Service]
  User=root
  #change this to your workspace
  WorkingDirectory=/data/acloud/repository/lib
  #path to executable. 
  #executable is a bash script file I created to run the application jar file
  ExecStart=/data/acloud/repository/lib/program.sh
  SuccessExitStatus=143
  TimeoutStopSec=10
  Restart=on-failure
  RestartSec=5
  [Install]
  WantedBy=multi-user.target
  </code></pre>
  
  <p>I added <code>After=</code> in one of the file hoping it would start only after the other service is started. But its not working. It starts without any problem even if the other service is not started. I don't understand why.</p>
  
  <p>Also, I put <code>Requires=&lt;other service&gt;</code> in the same file and removed the <code>after</code> clause. It works as expected. The other service starts automatically when this one is started.</p>
  
  <p>Any help is appreciated. Thanks.</p>