LinuxQuestions.org

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

anjanesh 05-10-2006 05:22 AM

service: command not found
 
I did service httpd status to check if I need to install Apache or not. I got this :
Code:

username@server [/]# service httpd status
-bash: service: command not found
username@server [/]#

How can there be no service on FC2 ? Im on SSH to a virtual dedicated server.

vs_optimist 05-10-2006 05:51 AM

Try

Code:

username@server [/]# /sbin/service httpd status

Lenard 05-10-2006 05:53 AM

Simple you used 'su' and not 'su -'....... please read 'man su' without the single quotemarks for the details.

When you use 'su' you inherit the users pathing, using 'su -' gives you (root) root's pathing. Try; /sbin/service httpd status

anjanesh 05-23-2006 10:37 AM

Thanks - it worked.


All times are GMT -5. The time now is 06:59 AM.