LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   remove from services (https://www.linuxquestions.org/questions/linux-newbie-8/remove-from-services-945057/)

fachhoch@gmail.com 05-15-2012 07:20 AM

remove from services
 
I made a file executable and added to services list using
chkconfig

now I want to remove from services please advice me how.'

fachhoch@gmail.com 05-15-2012 09:12 AM

Quote:

Originally Posted by fachhoch@gmail.com (Post 4678773)
I made a file executable and added to services list using
chkconfig

now I want to remove from services please advice me how.'

here what i did

Put the file under /etc/inid.d/tomcat
Give execute privilege to the file (chmod +x /etc/init.d/tomcat)
Add the file into service list (chkconfig ––add tomcat)

now if I want to delete tomcat can I just delete or should I remove from services first?

wpeckham 05-15-2012 12:33 PM

First
 
To remove a servers reverse the the steps used to install it.
So your first step will be to delete it form the service list using chkconfig.

lithos 05-15-2012 02:08 PM

Code:

chkconfig your_service_name off
this will set "your_service_name" to "off" all levels (1-5)

then remove it from the directory.

In this order!


All times are GMT -5. The time now is 06:44 PM.