LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Starting Services (https://www.linuxquestions.org/questions/linux-newbie-8/starting-services-112719/)

InEeDhElPlInUx 11-05-2003 12:32 PM

Starting Services
 
When I'm in terminal it doesnt reconize service so I can start a service. I remember do it that way about a month ago. What am I doing wrong...I've installed all the packages help please!

acid_kewpie 11-05-2003 12:40 PM

i don't understand what you mean "recognise service"? what are you actually doing??

Skyline 11-05-2003 12:41 PM

On some distributions you can start services like:

service portmap start

service httpd start

(for example)

InEeDhElPlInUx 11-05-2003 01:28 PM

Sorry didnt explain very well. Bash is what I get when I type in service. And Im using Redhat 9.0

InEeDhElPlInUx 11-05-2003 02:02 PM

It's telling me it cant find the command...

PipIWYG 11-06-2003 11:30 AM

This might be a stupid question, but are you logged in as root? I experienced the same problem, even after I "su"ed to super user, it still didn't find the command until I typed /sbin/service

Skyline 11-06-2003 11:37 AM

........... and in general - to run any command on the command line it needs to be in your PATH - to check your PATH

echo $PATH

for Red Hat

su -

(su dash)

gives you a typical Root users PATH

PipIWYG 11-06-2003 11:42 AM

Hmmmm... clever... I learn something new everyday, wether it be a question I posted or not.

How would you set the path, or at least add something to the path?

Skyline 11-06-2003 11:46 AM

....... for example

PATH=$PATH:/home/john/programs

export PATH

PipIWYG 11-06-2003 11:57 AM

Ok, so while we're on the topic about services, could you shed some light on my issue in the Newbie Forum with regards to managing services? I am still due to get a proper answer, and have been waiting for more than a day.... :o)


All times are GMT -5. The time now is 12:42 PM.