LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Stop auto Startup (https://www.linuxquestions.org/questions/solaris-opensolaris-20/stop-auto-startup-714470/)

Paris Heng 03-25-2009 09:56 PM

Stop auto Startup
 
How to permanently stop a particular application after reboot? Which file I need to look into? (eg.fully stop a Web Server after reboot)

paulsm4 03-25-2009 10:13 PM

It depends on the application you want to stop, and your particular distro.

In general, though, I'd look in the following places first:

1. /etc/inittab

2. The startup scripts (particularly those in /etc/rc3.d and /etc/rc5.d)

However, I'm guessing (based on the forum you posted to) that your distro is probably OpenSolaris (vs Unix or BSD, for example), and I understand that newer versions of Solaris (Solaris 10 and up) are now using "services" instead of classic "run levels".

So this FAQ might also give you some pointers:

http://opensolaris.org/os/community/smf/faq/#toc0

'Hope that helps .. PSM

Paris Heng 03-27-2009 05:36 AM

Quote:

Originally Posted by paulsm4 (Post 3487975)
It depends on the application you want to stop, and your particular distro.

In general, though, I'd look in the following places first:

1. /etc/inittab

2. The startup scripts (particularly those in /etc/rc3.d and /etc/rc5.d)

However, I'm guessing (based on the forum you posted to) that your distro is probably OpenSolaris (vs Unix or BSD, for example), and I understand that newer versions of Solaris (Solaris 10 and up) are now using "services" instead of classic "run levels".

So this FAQ might also give you some pointers:

http://opensolaris.org/os/community/smf/faq/#toc0

'Hope that helps .. PSM


Yes, but some services like web server can't be stop in the "services". Solaris is using /etc/init.d, I still yet to figure how to stop reboot.

kirukan 03-27-2009 06:14 AM

If your service added on smf and it is enabled on there you will have to disable (it means no point of stopping at /etc/init.d) smf having seperate startup srcipt at /lib/svc/method and these files are called by smf manifest xml(manifest at /var/svc/manifest)

TO check the service status
#svcs -l http or
#svcs | grep http

To stop the service
#svcadm disable http

Above given link have brief instruction I think it will help you to understand smf(system management facility)


All times are GMT -5. The time now is 08:17 PM.