LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-27-2005, 10:11 AM   #1
johnrage
LQ Newbie
 
Registered: Nov 2005
Location: Saudi Arabia
Posts: 18

Rep: Reputation: 0
NO service command in root director


I am trying to figure out and checking SSH config, however when I tried to supply such command in the root directory like "service sshd status" error.. bash: command: service not found.

Any suggestion or idea how to resolve my problem.

Thanks.
John
 
Old 11-27-2005, 10:41 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Welcome to LQ.

Only some distributions use a "service" command and you don't say what you are using.

if you do have it installed then make sure it is in your $PATH or use the full path:
/sbin/service sshd status
 
Old 11-27-2005, 10:51 AM   #3
johnrage
LQ Newbie
 
Registered: Nov 2005
Location: Saudi Arabia
Posts: 18

Original Poster
Rep: Reputation: 0
Seems you are right. It pertains only on a particular distribution of Linux. In SUSE how to check if SSH and HTTP is enable in the box.
 
Old 11-27-2005, 10:53 AM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Suse probably uses something like yast to do this. The easiest way to check would be to see if the processes are running:
ps -ef | grep sshd
ps -ef | grep httpd
 
Old 11-27-2005, 11:25 AM   #5
johnrage
LQ Newbie
 
Registered: Nov 2005
Location: Saudi Arabia
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by david_ross
Suse probably uses something like yast to do this. The easiest way to check would be to see if the processes are running:
ps -ef | grep sshd
ps -ef | grep httpd
Thanks that helps me a great thing today.

Do you have any URL or sites where i can download the basic command or manuals for suse pro 9.0? I am newbie and eager to learn this stuff. I am still trying to find out to download an asterisk via ftp and compiled.

Your help is greatly appreciated.
 
Old 11-28-2005, 03:42 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
The man command should give you the manual for almost any command on your system.

There also seems to be a guide on the manufacturers website:
http://www.novell.com/documentation/suse/index.html
 
Old 12-07-2005, 11:48 AM   #7
kmashraf
Member
 
Registered: May 2001
Location: Madras, India
Distribution: Mandrake, Vector, Fedora, Slackware-Live, CentOS, Ubuntu, Kubuntu, PCLOS, Sabayon
Posts: 34

Rep: Reputation: 15
How do I add....

I am running Mandriva 10.2. I have installed mysql-5.0.16 system wide from the compressed tar ball available at the mysql site. It works fine and to run it at boot time I have to put it in the rc.local file. Putting mysql.server script in the /etc/rc.d/init.d would not start it at boot time. Is it because it needs to be started thus /etc/rc.d/init.d/mysql.server start . I would like to know how I can add the script so that if I do a 'service mysql status' I get a result. I could have got it to work I suppose if I had installed the rpm version instead but all the same I am sure I can add the same manually if somebody could guide me.
Thanks
 
  


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
service command not recognised nutthick Linux - Newbie 2 11-14-2004 06:16 AM
Is it possible to start a service but not as a root user appas Linux - Software 1 10-16-2004 12:26 AM
Starting a service as non root user? dee3lmo Linux - General 2 07-30-2004 08:37 PM
Command to restart httpd service deWin Linux - Software 2 07-13-2004 07:17 PM
How to use Service command for a program safun75 Linux - Software 4 04-16-2004 06:35 PM


All times are GMT -5. The time now is 06:29 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration