Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-28-2009, 03:02 AM   #1
LQ Newbie
Registered: Oct 2009
Location: South Africa
Posts: 2
Blog Entries: 1

Rep: Reputation: 0
service command

Hi, I have installed Fedora 7. I trying to use the service command. It is it is not recognize. I know you can reset services other ways. I just wanted to know how to enable it?

Old 10-28-2009, 03:07 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
why have you installed fedora 7?? it's real old now, and obsolete. Install something newer. As for the service command, it's there, I'd bet your're either not root, or you've not su'd to root correctly. run "su -" and then you'll have the right environment path set to get it. Pointless command IMO. just run /etc/init.d/<service name> instead. The service command adds nothing at all.
Old 10-29-2009, 01:08 AM   #3
LQ Newbie
Registered: Oct 2009
Location: South Africa
Posts: 2
Blog Entries: 1

Original Poster
Rep: Reputation: 0
Thanks. I will just get an update version of fedora
Old 10-29-2009, 01:13 AM   #4
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7/10
Posts: 879

Rep: Reputation: 113Reputation: 113
yea the service command only works with root or su access. If you are user or $ level then you will need to use something like

$ /etc/init.d/httpd status | restart | stop | start
or something like that.

Last edited by jmc1987; 10-29-2009 at 01:14 AM.
Old 10-29-2009, 01:27 AM   #5
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
You need to be root to start the service, no matter how you do it.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
using screen command as a service disbeliever Linux - Newbie 1 06-16-2008 03:56 AM
service command in Suse chucker8 Linux - Newbie 1 09-05-2006 12:38 PM
issue with 'service' command vortmax Fedora 5 08-08-2006 01:26 PM
service: command not found aap Linux - Newbie 8 01-06-2006 08:15 PM
How to use Service command for a program safun75 Linux - Software 4 04-16-2004 05:35 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:14 PM.

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