LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-16-2007, 02:58 PM   #1
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Rep: Reputation: 15
Start/Stop Services


Can someone please tell me how to view/start/stop services using Ubuntu 7.04. I used to have Fedora and typed

"service httpd status"
"service httpd start"
"service httpd stop"

Thanks!
 
Old 06-16-2007, 03:08 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
In Debian you can install 'sysvconfig', which includes 'service' - probably the same for Ubuntu - and there are other similar-type applications you can search the package databases for.
 
Old 06-16-2007, 03:18 PM   #3
Verbal Kint
Member
 
Registered: Apr 2004
Posts: 99

Original Poster
Rep: Reputation: 15
Thanks, now I have a new problem :-p

I used to run "service httpd status/stop/start" with FEdora, with Ubuntu I get "httpd: unrecognized service"

Any ideas?
 
Old 06-16-2007, 03:26 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Do you have Apache installed?You probably don't have Apache 2 installed. You can check with "dpkg -l" and see if you see the Apache

Even if you do have Apache installed, on my Kubuntu box the service names are apache and apache2 (depending on which version is installed), not httpd.
 
Old 06-21-2007, 06:56 AM   #5
trent73
LQ Newbie
 
Registered: Jun 2007
Posts: 1

Rep: Reputation: 0
Thumbs up Start/Stop Services Debian & Ubuntu - How to

Starting and Stopping Startup Services - Debian & Ubuntu

(where apache2 is the service we want to change at startup)

Stop Apache on all runlevels
sudo update-rc.d -f apache2 remove

Start apache2 on all runlevels
# update-rc.d apache2 defaults

which is the same as...

# update-rc.d apache2 start 20 2 3 4 5 . stop 80 0 1 6 .

The periods '.' are important and indicates end of sequences

To start apache2 only in runlevel 5
# update-rc.d apache2 start 20 5 . stop 80 0 1 2 3 4 6 .

Use sysv-rc-conf - and take the easy way out!
$ sudo apt-get install sysv-rc-conf
$ sudo sysv-rc-conf


Good-luck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO Check, Start and Stop Services GNewbie MEPIS 9 08-22-2012 10:09 PM
stop and start services hoover93 SUSE / openSUSE 5 12-29-2004 02:48 PM
Gentoo: start / stop services Adony Linux - Newbie 5 12-10-2004 09:39 AM
start and stop services log Linux - General 7 03-21-2003 08:29 PM
Start Stop Restart Services Sifvion Slackware 6 09-14-2002 03:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration