LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   service command (https://www.linuxquestions.org/questions/linux-newbie-8/service-command-764953/)

quath 10-28-2009 03:02 AM

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

acid_kewpie 10-28-2009 03:07 AM

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.

quath 10-29-2009 01:08 AM

Thanks. I will just get an update version of fedora

jmc1987 10-29-2009 01:13 AM

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.

linuxlover.chaitanya 10-29-2009 01:27 AM

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


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