LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 03: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, 03:07 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
quath
LQ Newbie
 
Registered: Oct 2009
Location: South Africa
Posts: 2

Original Poster
Blog Entries: 1

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

Rep: Reputation: 119Reputation: 119
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 01:14 AM.
 
Old 10-29-2009, 01:27 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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


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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:29 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