1836496 Members
3400 Online
110101 Solutions
New Discussion

Service not starting

 
Ron Bromwell
Frequent Advisor

Service not starting

Hi All,
I have a service that is not starting when I boot my B180L machine. We are running HP-UX 10.20. If I start the service from a command prompt, it does start. The service is listed in /etc/services and the /etc/inetd.conf. Is there a log file somewhere that might give me a little more insight as to why this service is not starting?
Thanks,
Ron
life's a journey, not a destination
8 REPLIES 8
Rich Wright
Trusted Contributor

Re: Service not starting

If the service is in inetd.conf, it is usually started by the inetd only when needed.
The logs you are taling about would be the /etc/rc.log file and/or /var/adm/syslog/syslog.log files.
Hai Nguyen_1
Honored Contributor

Re: Service not starting

Ron,

Rich is correct. Look for ERROR in /etc/rc.log. Also can you tell us the name of the service and the way you started it?

Hai
Bill McNAMARA_1
Honored Contributor

Re: Service not starting

what is the service? and at what run level is it started?.. it may require to be started after lan, ie sometime during init 3

Check the corresponding /etc/rc.config.d/ configuration that may say do not start on startup...

Later,
Bill
It works for me (tm)
Joseph C. Denman
Honored Contributor

Re: Service not starting

Ron,

If you have to kick off the service at the command line, you should have startup script for it. It being listed in the inetd.conf will not start the service. inetd is a daemon that listens for designated services and then starts the service based on the request.

You should check /sbin/init.d for a startup script. If one is not present, you will need to create one. If one is listed, make sure there is a corresonding link in the /sbin/rc?.d

Attached a doc with good info.

...jcd...

If I had only read the instructions first??
Yogeeraj_1
Honored Contributor

Re: Service not starting

Hi,

start by looking into:
1. /etc/rc.log file
2. /var/adm/syslog/syslog.log

Maybe the environment is not properly set in the startup script -- then NOT OK and when you start it at command line with all environment variables set correctly -- OK

Hope this helps!
Best Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Fragon
Trusted Contributor

Re: Service not starting

There is a probably causation:
The service start abnormally when the system boot. On how to check:
#ps -ef |grep "service"
I think you must check /sbin/init.d script and /etc/rc*.d links.
Also check if the concerned files are removed or damaged.

-Gerald-
harry d brown jr
Honored Contributor

Re: Service not starting

Ron,

This member has assigned points to 46 of 106 responses to his/her questions.

http://forums.itrc.hp.com/cm/TopSolutions/1,,CA482821!1!questions,00.html

DON'T forget to reward those that have helped or haven't helped.

live free or die
harry
Live Free or Die
Bill Hassell
Honored Contributor

Re: Service not starting

Is it truly a networking service, or a process that you'd normally run from inittab, or a process that is to be run at bootup. Here are the differences:

- Network services (aka, daemons) are named in /eetc/services along with the port that will be used to activate the daemon--inetd will start the service when the port receives some data. A network daemon must be specially written to act as a network service.

- inittab contains names of processes that will be started (and/or restarted) by init based on the run level. It may be run once, or repeatedly restarted (respawn). Ordinary prgrams can be started by init but since init does not login, processes must run in a minimal environment.

- startup tasks are the most likely location for most background processes such as database processes. These startup tasks are scripted and the code stored in /sbin/init.d, with sequencing links in /etc/rc?.d for startup and shutdown. To enable or disable them, a corresponding source script is stored in /etc/rc.config.d
Startup/shutdown details are found in /usr/share/doc (11.00 and lower, for 11i, look at docs.hp.com.


Bill Hassell, sysadmin