Re: 'service' command not present

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Around 09:56pm on Monday, August 20, 2007 (UK time), pctech@xxxxxxxxxxxxxxxxx scrawled:

> 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.

How did you change to root?  If you used "su", rather than "su -", you
will not have root's path ingormation and will need to type the full
path: "/sbin/service...".  It would be better to do "su -", which gives
you a full rott environment.

Steve

-- 

A:  Because it messes up the order in which people normally read text.
Q:  Why is top-posting a bad thing?

 10:33:12 up 16 days, 22:57,  1 user,  load average: 0.00, 0.03, 0.03

Attachment: pgpmie7ALE4Ic.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux