LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 11-05-2003, 01:32 PM   #1
InEeDhElPlInUx
Member
 
Registered: Sep 2003
Posts: 107

Rep: Reputation: 15
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!
 
Old 11-05-2003, 01:40 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
i don't understand what you mean "recognise service"? what are you actually doing??
 
Old 11-05-2003, 01:41 PM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
On some distributions you can start services like:

service portmap start

service httpd start

(for example)
 
Old 11-05-2003, 02:28 PM   #4
InEeDhElPlInUx
Member
 
Registered: Sep 2003
Posts: 107

Original Poster
Rep: Reputation: 15
Sorry didnt explain very well. Bash is what I get when I type in service. And Im using Redhat 9.0

Last edited by InEeDhElPlInUx; 11-05-2003 at 02:40 PM.
 
Old 11-05-2003, 03:02 PM   #5
InEeDhElPlInUx
Member
 
Registered: Sep 2003
Posts: 107

Original Poster
Rep: Reputation: 15
It's telling me it cant find the command...
 
Old 11-06-2003, 12:30 PM   #6
PipIWYG
LQ Newbie
 
Registered: Oct 2003
Location: South Africa
Distribution: Red Hat 9
Posts: 6

Rep: Reputation: 0
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
 
Old 11-06-2003, 12:37 PM   #7
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
........... 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
 
Old 11-06-2003, 12:42 PM   #8
PipIWYG
LQ Newbie
 
Registered: Oct 2003
Location: South Africa
Distribution: Red Hat 9
Posts: 6

Rep: Reputation: 0
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?
 
Old 11-06-2003, 12:46 PM   #9
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
....... for example

PATH=$PATH:/home/john/programs

export PATH
 
Old 11-06-2003, 12:57 PM   #10
PipIWYG
LQ Newbie
 
Registered: Oct 2003
Location: South Africa
Distribution: Red Hat 9
Posts: 6

Rep: Reputation: 0
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.... )
 
  


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
Starting different services at boot mjjzf Slackware 2 05-21-2005 02:46 PM
FreeBSD starting services reddazz *BSD 4 04-17-2005 11:14 AM
Starting services at bootup Lucasite Linux - Newbie 5 04-17-2004 03:08 PM
Starting Services on Slackware 9.1 granatica Linux - General 2 03-16-2004 09:49 PM
starting services in Suse 8.2? rje_NC Linux - Software 1 06-28-2003 02:35 AM


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