Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > Linux
|
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 25th, 2003, 12:04 PM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default RE: No 'Service' command??

Hi,
I think I posted this in the wrong forum (what's PHP anyway?)

I'm currently working my way through 'Beginning Red Hat Linux 9’, which has been great up until chapter 9. The book goes into the details of setting up server services, explains how to start the relevant service, and then try’s to explain how to control that service from bash.

My bash prompt doesn’t have the command 'service' therefore doesn’t work and I can't progress through the chapter, (which is annoying)

Does anybody have any ideas on this? Any help would be great??


 
Old November 26th, 2003, 08:33 AM
Registered User
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've solved this problem now, the 'service' command is in a different location to the standard bash command locations so by adding the location of the command at the start allows the shell to use the command ( Which the book dosn't say ). I guess this location can be added to the customizable options of the shell.

Example:
/sbin/service httpd start


Cheers,

Richard


 
Old March 3rd, 2004, 07:22 AM
Registered User
 
Join Date: Mar 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To add the /sbin directory to bash shell command search paths

Type:

PATH=$PATH:/sbin

This will append /sbin to the end of your existing paths.

You may find it useful to add /usr/sbin too using RH.

To check your paths type env

TTFN

Muffin Man





Similar Threads
Thread Thread Starter Forum Replies Last Post
Stop Tomcat Service "Command Window" steveAR BOOK: Professional Apache Tomcat 1 June 9th, 2008 12:16 PM
Remove Service "Command Window" steveAR Apache Tomcat 0 May 11th, 2007 11:30 AM
c# web service execute remote command? chintu926 .NET Web Services 1 May 24th, 2006 07:05 AM
restart MSSQL service from command line in windows crmpicco SQL Server 2000 4 January 25th, 2006 11:06 AM
Help with command 'service' walkeri1 Beginning PHP 0 November 25th, 2003 11:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.