systemd service failed to start with errror : “main process exited, code=exited, status=3/NOTIMPLEMENTED”
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm not an expert in this but it looks as if your called program has simply finished what it was doing and systemd (which normally deals with creating services that remain running once loaded) doesn't know what to do with that situation because you haven't defined the actions to be taken in that case.
Your answer is in the setup of your service file. Look at setting up a oneshot service.
i know about the "oneshot" type, but my service doesnt have anaything like that. basically my service has to create a process which i couldnt see with ps command.
If you run the shell script rccproxy.sh manually from the command line, does it terminate back to the command line prompt once it's finished what it's doing?
when i run manually it terminates back to the command line prompt. The script is trying to start a process which is not working. I need to know how to debug this with whatever info status dump giving.
when i run manually it terminates back to the command line prompt. The script is trying to start a process which is not working. I need to know how to debug this with whatever info status dump giving.
Hence why you are getting the systemd error - the "service" (the script file, which is what systemd cares about) is terminating and you haven't told systemd what to do in that case.
When you run the script manually, does the process that the script starts up work properly? If not, take systemd out of the equation for the moment, in fact also take the script out of the equation. Start the underlying process itself manually and debug that.
What process are we talking about here? Has it worked in the past? Have you searched the web for similar failings with that process?
Thanks,I got your point now, the script is trying to execute a binary which is failing. I am doing linux migration from RHEL 6.4 to 7.3. The same binary is working under 6.3 , but now looks like it is failing in 7.4
Thanks,I got your point now, the script is trying to execute a binary which is failing. I am doing linux migration from RHEL 6.4 to 7.3. The same binary is working under 6.3 , but now looks like it is failing in 7.4
Have you contacted Red Hat support about the problem?
Its our application binary which is failing not Redhat's. Need to check why it is failing & modify accordingly.
Yup. I just thought that since the problem has arisen in 7.x then Redhat may be able to provide you with an idea of what has changed between 6.x and 7.x that could be causing the issue, perhaps gleaned from the experience of others facing similar issues.
Anyway, good luck with the debugging and let us know how you get on.
The reason for this is that In the systemd service Remainafterexit value is set to be true.That is why the process is still showing and not exited though it has stopped running.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.