[CentOS] 'service' command not present
Steve Searle
steve at stevesearle.com
Wed Aug 22 09:34:51 UTC 2007
Around 09:56pm on Monday, August 20, 2007 (UK time), pctech at mybellybutton.com 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20070822/28c1b095/attachment.sig>
More information about the CentOS
mailing list