0

systemctl status command shows the ExecStop Failure message. Even though my service is up and running.

testDB.service - the testDB service
  Loaded: loaded (/usr/lib/systemd/system/testDB.service; enabled; vendor preset: disabled)
  Active: active (running) since Wed 2022-04-27 15:55:38 IST; 7s ago
 Process: 946 ExecStop=db/testDB/scripts/testDB.init stop (code=exited, status=1/FAILURE)
 Process: 995 ExecStart=db/testDB/scripts/testDB.init start (code=exited, status=0/SUCCESS)

Is there any way to avoid the ExecStop FAILURE message?

1 Answers1

-1

Remove a line which begins from ExecStop from the systemd unit file for your service. Or make sure the script testDB.init stop always returns exit code 0

4snok
  • 104
  • 4