Solaris 10 apache does not auto start at boot

Hello

I have installed solaris 10 on a sun machine and later added the security toolkit 4.2. I need the apache server running which I have to do manually once the system reboots. Later on further advise I made apache as Identity Manager service through solaris service management facility. I have enabled this service , now when the system reboots the apache IDMGR service starts up and shows online when I do svcs idmgr but the apache processes do not run. On doing a ps -ef | grep apache nothing shows up. Is this to do with the security toolkit, if yes any advise how can I sort this out.

There is one more daemon process for Softnet which is also not getting initiated on system reboot.

Thanks in advance.

Pioneer

[751 byte] By [Pi0neera] at [2007-11-27 10:27:21]
# 1

You have to put services in /etc/init.d and link to /etc/rc2.d

For example:

ln -s /etc/init.d/httpd /etc/rc2.d/S99httpd

You can link form other folder too if you want...

TheNetWalkera at 2007-7-28 17:45:00 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

init.d? Are we talking about sol10?

ps -e | grep httpd will give you the processes.

I would stick with svcadm and not init.d

kjard_usa at 2007-7-28 17:45:00 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3

> init.d? Are we talking about sol10?

Yes, init.d is a folder, not configuration file, there you place services that you want to run.

It is not "must" to place there services, but it is a good tone to do that, because other Unix/Linux systems have there services too.

TheNetWalkera at 2007-7-28 17:45:00 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4

Somebody with more real admin experience should chime in on this but as far as I can tell init.d is way legacy now for solaris. I run linux boxes that use init.d but in the last 2 years I have never put anything in there if I can help it.

I am trying to think of a reason to put something there but it is not coming to me.

in fact the only thing that comes up is stomach acid thinking about start and kill files.

kjard_usa at 2007-7-28 17:45:00 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5

Hi all

thanks for your replies. In Solaris 10 apache server can't be initiated at through the traditional rc scripts and linking with ../init.d and has to be setup as a svc service that is why I had setup apache as svcs service.

Since I have installed the security toolkit 4.2 it is actually disbaling certain services/processes at boot. I am not able to trace and enable any service that is actually needed by my system

Many Thanks

Pi0neera at 2007-7-28 17:45:00 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 6

Unfortunately, I've never played with the Security Toolkit, but I can make some general recommendations that might be useful:

What do you get with:

# svcs -x

That will list any services that aren't running, as well as any dependency issues.

Did you write your IDMGR svc scripts? Looking through those scripts should show you what happens. You'll also have a log file in /var/svc/log that may include useful information.

The SVC configs live in /var/svc/manifest, and they'll have an "exec_method" section... where name='start' you'll find a exec entry that actually lists the startup script being used.

One possibility, is that you're supposed to start Apache separately with the IDMGR as a dependency of your Apache....

swilson-uca at 2007-7-28 17:45:00 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 7

> Somebody with more real admin experience should chime

> in on this but as far as I can tell init.d is way

> legacy now for solaris. I run linux boxes that use

> init.d but in the last 2 years I have never put

> anything in there if I can help it.

In Solaris 10, the most modern way of handling services is SMF -- but you can still use /etc/init.d and rc scripts.

s-wilsona at 2007-7-28 17:45:00 > top of Java-index,Solaris Operating System,Solaris 10 Features...