LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-28-2009, 04:02 AM   #1
quath
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?

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

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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, 02:08 AM   #3
quath
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, 02:13 AM   #4
jmc1987
Member
 
Registered: Sep 2009
Location: Oklahoma
Distribution: Debian, CentOS, windows 7
Posts: 872

Rep: Reputation: 112Reputation: 112
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

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

Last edited by jmc1987; 10-29-2009 at 02:14 AM.
 
Old 10-29-2009, 02:27 AM   #5
linuxlover.chaitanya
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.
 
  


Reply


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 04:56 AM
service command in Suse chucker8 Linux - Newbie 1 09-05-2006 01:38 PM
issue with 'service' command vortmax Fedora 5 08-08-2006 02:26 PM
service: command not found aap Linux - Newbie 8 01-06-2006 09:15 PM
How to use Service command for a program safun75 Linux - Software 4 04-16-2004 06:35 PM


All times are GMT -5. The time now is 10:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration