this is /etc/systemd/system/opengauss.service。but “systemctl start opengauss” makes wrong 。
I manually executed this command ExecStart && ExecStop as User odd ,and the opengauss service started & stopped suceessfully。but “systemctl start opengauss” makes wrong 。 it shows the code=exited status=127,and mabye it can help 。what i can do?
I had the same problem. I was trying to launch QT program using systemctl
service. For me the solution was to make service launch the .sh
file that exports necessary variables from QT project Build Environment and after that launches my program.
So it might help in your case too: you might missing some environmental variables if the program launches normally from command prompt but your service can’t launch it.