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.
---------------------------------------------------------
Sorry for the broken webmailer...
Are you performing these actions as root? A user that does not have root access cannot start services. You will either need to su to root or sudo the action.
---------------------------------------------------------
Around 09:56pm on Monday, August 20, 2007 (UK time), pctech@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