[CentOS] 'service' command not present

Stephen Harris lists at spuddy.org
Mon Aug 20 20:57:57 UTC 2007


On Mon, Aug 20, 2007 at 04:54:11PM -0400, Trey Sizemore wrote:
> I just did an install of CentOS 5 on one of my machines.  However, when
> I try to use the 'service' command (such as 'service httpd start') I get
> an error that the service command is not found.
> 
> Why would that be?  Where does this command come from?  I can launch
> the services just fine using the respective /etc/init.d/ entries.

/sbin/service   (from initscripts)

Either type the full command line or make sure it's on your PATH

eg
sudo /sbin/service httpd start


-- 

rgds
Stephen



More information about the CentOS mailing list