title: Why is systemd stopping service immediately after it is started?
body: <p>I created a systemd service which should invoke a shell script, when started or on reboot.</p>
  
  <pre><code>[Unit]
  Description=Starts the DCCA index software
  
  [Install]
  WantedBy=multi-user.target
  
  [Service]
  ExecStart=/opt/insiteone/bin/indexControl start
  ExecStop=/opt/insiteone/bin/indexControl stop
  
  # Execute pre and post scripts as root
  #PermissionsStartOnly=true
  Restart=on-abort
  TimeoutSec=600
  </code></pre>
  
  <p>Initially it kept on restarting in infinite loop as soon as it is started, but when i added the <code>TimeoutSec</code> option, it called the <code>ExecStop</code> as soon as the service was started for the first time (started, and then stopped again immediately).</p>
  
  <p>Any clue, where i am going wrong?
  P.S: indexControl is a shell script, which starts other processes.</p>