I created a systemd service which should invoke a shell script, when started or on reboot.
[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
Initially it kept on restarting in infinite loop as soon as it is started, but when I added the TimeoutSec
option, it called the ExecStop
as soon as the service was started for the first time (started, and then stopped again immediately).
Any clue, where I am going wrong?
P.S.: indexControl
is a shell script, which starts other processes