Link to home
Start Free TrialLog in
Avatar of andieje
andieje

asked on

jetty on ubunutu

Hi

I need to install jetty on ubuntu but i'm not really sure what i'm doing.

I did apt-get install jetty

and then it said it couldn't start the service as NO_START = 1 so i editted the file to N0_START = 0 as recommended and then started the service by service jetty start

I really don't know much about services under linux
Is this the correct way to start the service?

What permissions is the service running with? What user/group is it running under and how do i find out these details for a service?

thanks
Avatar of Member_2_6105789
Member_2_6105789

If you've edited that file while Jetty was still running, you may have caused an error that forced the service to stop.

These are the commands used to stop and start the service.
 
sudo /etc/init.d/jetty stop
sudo /etc/init.d/jetty start

Open in new window

To install Jetty:
 
sudo apt-get install jetty

Open in new window

Also, these libraries are also needed for Jetty to run correctly:
 
sudo apt-get install libjetty6-java
sudo apt-get install libjetty6-extra-java
sudo apt-get install jetty

Open in new window

If you've ran all these commands with sudo, you have installed them under ~root and they are running as such; with root permissions. I always check ubuntu forums for unbuntu related stuff.
Avatar of andieje

ASKER

i editted the file before i started the service

I coulnd't install the 2 packages:
 sudo apt-get install libjetty6-java
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Package libjetty6-java is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libjetty6-java has no installation candidate
Avatar of andieje

ASKER

sudo apt-get install libjetty6-extra-java
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Couldn't find package libjetty6-extra-java
ASKER CERTIFIED SOLUTION
Avatar of svs
svs
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of andieje

ASKER

ah this sounds familar - i think i have been told this before: services start off as root and then drop down to the user specified in the config files. is that right?
Yes