enable linux service at boot level at CENTOS [closed]











up vote
0
down vote

favorite












I am trying to enable a service at boot level by running systemctl enable but when I reboot machine it still goes to inactive state. I do not see any failure in system log as well.



I need to get my service running/respawn if system gets crashed or restarts.










share|improve this question









New contributor




DevopsDev OS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











closed as unclear what you're asking by Jeff Schaller, mdpc, mosvy, Fabby, GAD3R Nov 22 at 9:23


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • Welcome to U&L! Please could you provide some more information about the service you're trying to create? Include the full command you ran (systemctl enable requires an argument) and the contents of any new systemd files you added.
    – JigglyNaga
    Nov 21 at 17:10










  • how is your service configured? is it "wanted by" the pertinent target?
    – Jeff Schaller
    Nov 21 at 17:12










  • Thanks Jeff. wanted by was missing at my systemd service file. I have updated it and magic works.
    – DevopsDev OS
    Nov 21 at 19:07










  • Please also post output of systemctl status on your service after boot. It's possible your service is being started and fails, so that's why you don't see it up... Also look at journalctl -b -e after boot, see if you find something relevant there, regarding your service, or the system in general...
    – Filipe Brandenburger
    Nov 21 at 19:39















up vote
0
down vote

favorite












I am trying to enable a service at boot level by running systemctl enable but when I reboot machine it still goes to inactive state. I do not see any failure in system log as well.



I need to get my service running/respawn if system gets crashed or restarts.










share|improve this question









New contributor




DevopsDev OS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











closed as unclear what you're asking by Jeff Schaller, mdpc, mosvy, Fabby, GAD3R Nov 22 at 9:23


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.















  • Welcome to U&L! Please could you provide some more information about the service you're trying to create? Include the full command you ran (systemctl enable requires an argument) and the contents of any new systemd files you added.
    – JigglyNaga
    Nov 21 at 17:10










  • how is your service configured? is it "wanted by" the pertinent target?
    – Jeff Schaller
    Nov 21 at 17:12










  • Thanks Jeff. wanted by was missing at my systemd service file. I have updated it and magic works.
    – DevopsDev OS
    Nov 21 at 19:07










  • Please also post output of systemctl status on your service after boot. It's possible your service is being started and fails, so that's why you don't see it up... Also look at journalctl -b -e after boot, see if you find something relevant there, regarding your service, or the system in general...
    – Filipe Brandenburger
    Nov 21 at 19:39













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am trying to enable a service at boot level by running systemctl enable but when I reboot machine it still goes to inactive state. I do not see any failure in system log as well.



I need to get my service running/respawn if system gets crashed or restarts.










share|improve this question









New contributor




DevopsDev OS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I am trying to enable a service at boot level by running systemctl enable but when I reboot machine it still goes to inactive state. I do not see any failure in system log as well.



I need to get my service running/respawn if system gets crashed or restarts.







linux systemd systemctl






share|improve this question









New contributor




DevopsDev OS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




DevopsDev OS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Nov 21 at 17:12









Jeff Schaller

36.6k1052120




36.6k1052120






New contributor




DevopsDev OS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 21 at 16:55









DevopsDev OS

1




1




New contributor




DevopsDev OS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





DevopsDev OS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






DevopsDev OS is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




closed as unclear what you're asking by Jeff Schaller, mdpc, mosvy, Fabby, GAD3R Nov 22 at 9:23


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






closed as unclear what you're asking by Jeff Schaller, mdpc, mosvy, Fabby, GAD3R Nov 22 at 9:23


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.














  • Welcome to U&L! Please could you provide some more information about the service you're trying to create? Include the full command you ran (systemctl enable requires an argument) and the contents of any new systemd files you added.
    – JigglyNaga
    Nov 21 at 17:10










  • how is your service configured? is it "wanted by" the pertinent target?
    – Jeff Schaller
    Nov 21 at 17:12










  • Thanks Jeff. wanted by was missing at my systemd service file. I have updated it and magic works.
    – DevopsDev OS
    Nov 21 at 19:07










  • Please also post output of systemctl status on your service after boot. It's possible your service is being started and fails, so that's why you don't see it up... Also look at journalctl -b -e after boot, see if you find something relevant there, regarding your service, or the system in general...
    – Filipe Brandenburger
    Nov 21 at 19:39


















  • Welcome to U&L! Please could you provide some more information about the service you're trying to create? Include the full command you ran (systemctl enable requires an argument) and the contents of any new systemd files you added.
    – JigglyNaga
    Nov 21 at 17:10










  • how is your service configured? is it "wanted by" the pertinent target?
    – Jeff Schaller
    Nov 21 at 17:12










  • Thanks Jeff. wanted by was missing at my systemd service file. I have updated it and magic works.
    – DevopsDev OS
    Nov 21 at 19:07










  • Please also post output of systemctl status on your service after boot. It's possible your service is being started and fails, so that's why you don't see it up... Also look at journalctl -b -e after boot, see if you find something relevant there, regarding your service, or the system in general...
    – Filipe Brandenburger
    Nov 21 at 19:39
















Welcome to U&L! Please could you provide some more information about the service you're trying to create? Include the full command you ran (systemctl enable requires an argument) and the contents of any new systemd files you added.
– JigglyNaga
Nov 21 at 17:10




Welcome to U&L! Please could you provide some more information about the service you're trying to create? Include the full command you ran (systemctl enable requires an argument) and the contents of any new systemd files you added.
– JigglyNaga
Nov 21 at 17:10












how is your service configured? is it "wanted by" the pertinent target?
– Jeff Schaller
Nov 21 at 17:12




how is your service configured? is it "wanted by" the pertinent target?
– Jeff Schaller
Nov 21 at 17:12












Thanks Jeff. wanted by was missing at my systemd service file. I have updated it and magic works.
– DevopsDev OS
Nov 21 at 19:07




Thanks Jeff. wanted by was missing at my systemd service file. I have updated it and magic works.
– DevopsDev OS
Nov 21 at 19:07












Please also post output of systemctl status on your service after boot. It's possible your service is being started and fails, so that's why you don't see it up... Also look at journalctl -b -e after boot, see if you find something relevant there, regarding your service, or the system in general...
– Filipe Brandenburger
Nov 21 at 19:39




Please also post output of systemctl status on your service after boot. It's possible your service is being started and fails, so that's why you don't see it up... Also look at journalctl -b -e after boot, see if you find something relevant there, regarding your service, or the system in general...
– Filipe Brandenburger
Nov 21 at 19:39















active

oldest

votes






















active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Morgemoulin

Scott Moir

Souastre