At startup.

I have a sunbox that's all set up and ready to be used as an intranet server except for one small feature...I need a few things to start running automatically when the computer is booted up and logged in (Specifically: Apache, PHP and MySQL which are already installed).

Google has been less than helpful...or at least everything I've read doesn't seem to actually be what I'm looking for.

If someone could help me out with this or at least point me in the right direction, I'd greatly appreciate it.

Thanks!

[538 byte] By [ellie_a] at [2007-11-27 5:56:43]
# 1

>

> automatically when the computer is booted up and

> logged in (Specifically: Apache, PHP and MySQL which

> are already installed).

You don't say which release of Solaris you're running. If it's Solaris 10, you need to read up on the new Service Management Facility (smf) that will allow you to auto-start applications.

If you're running Solaris <10, look at the scripts in /etc/init.d

timevansa at 2007-7-12 16:27:45 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

You can use the /etc/init.d/apache script and modify it to your liking.

It is symbolically linked to /etc/rc3.d/S50apache

Once the box reached run level 3, it sill issue a start and you are good to go.

You can test it out without having to reboot the server simply by:

#/etc/init.d/apache start

#ps -ef | grep -i http

#/etc/init.d/apache stop

In Solaris 10, you can still use the run control scripts (like /etc/init.d/apache),

but the future is SMF (svcs).

http://learningsolaris.com/archives/2005/08/26/solaris-10-smf-presentation

http://learningsolaris.com/docs/t-smf-devday-june-2005.pdf

cloakesa at 2007-7-12 16:27:45 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3
Darn, I knew I forgot to add something. I'm running Solaris 8.
ellie_a at 2007-7-12 16:27:45 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...