I created a systemd service that should run a shell script on startup 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
Initially, it continued to restart in an infinite loop as soon as it was started, but when I added the TimeoutSec parameter, it called ExecStop as soon as the service was started for the first time (it started and then stopped immediately).
Any clue where am I wrong? PS: indexControl is a shell script that launches other processes.
source share