Jetty auto start on boot

I am trying to run Jetty on my Ubuntu. I executed the following commands:

cp /opt/jetty/bin/jetty.sh /etc/init.d update-rc.d jetty.sh defaults 

but when I started it, I got "Not starting berth - NO_START = 1".

Does anyone know why?

Secondly, inside jetty.sh.

the following is indicated:
 # To get the service to restart correctly on reboot, uncomment below (3 lines): # ======================== # chkconfig: 3 99 99 # description: Jetty 7 webserver # processname: jetty # ======================== 

What is this "3 line"? I am excavated

 chkconfig: 3 99 99 description: Jetty 7 webserver processname: jetty 

but also got an error.

+6
source share
2 answers

By default, Jetty does not start by itself.

You need to modify /etc/default/jetty6 (or any of your configuration file) and install:

 no_start = 0 
+6
source

You can do this by commenting too. #NO_START=1

This is easy to do by following these steps.

  • In terminal type sudo vi /etc/default/jetty

  • At the beginning you can see the line NO_START=1

  • Press the Insert key on the keyboard, then you can switch to insert mode.

    At the bottom, you can also see -INSERT- to make sure you are in insert mode.

  • Comment out the line, #NO_START=1

  • Press Esc to exit evacuation mode.

  • then enter the following to save the changes and exit. :wq!

Now you can start.

+2
source

Source: https://habr.com/ru/post/898660/


All Articles