Operating System - HP-UX
1820879 Members
3522 Online
109628 Solutions
New Discussion юеВ

Stopping service startup during boot time

 
SOLVED
Go to solution
Roberto Volsa
Frequent Advisor

Stopping service startup during boot time

Hello,
which is the command to do if i want to stop a service during boot time?
This can be useful if a service cannot start (as NFS...) and it takes too much time to give the FAIL message without proceding with the boot.
Thanks a lot
6 REPLIES 6
Sukant Naik
Trusted Contributor

Re: Stopping service startup during boot time

Hi,

I hope you are talking about HP-UX server.

You can goto /sbin/init.d directory.

You can stop and start the files here

eg:
#cd /sbin/init.d
# ./nfs.client stop
killing nfsd
killing rpc.mountd
killing rpc.lockd
killing rpc.statd
starting NFS SERVER networking

starting up the rpcbind daemon
rpcbind already started, using pid: 537
starting up the mount daemon
/usr/sbin/rpc.mountd
starting up the NFS daemons
/usr/sbin/nfsd 15
starting up the Status Monitor daemon
/usr/sbin/rpc.statd
starting up the Lock Manager daemon
/usr/sbin/rpc.lockd
killing biod
killing automount

Also, you can find information about it in the /etc/rc.log file.

-Sukant
Who dares he wins
Roberto Volsa
Frequent Advisor

Re: Stopping service startup during boot time

yes,
i am talking about HP-UX.
But I am referring to stop it's startup when i am at boot time and it cannot start: i want avoid waiting for all the time it try to start
Donald Kok
Respected Contributor

Re: Stopping service startup during boot time

you can use ctrl-backslash to stop the service.
My systems are 100% Murphy Compliant. Guaranteed!!!
Sukant Naik
Trusted Contributor

Re: Stopping service startup during boot time

Hi Roberto,

Then you need to look into the /sbin/rc2.d directory.

Usually, if I dont want to start a script, then I rename the start script with lowercase letters.

#cd /sbin/rc2.d
#mv S337hpapa s337hpapa
#mv S343hplm s343hplm

This will stop the process from starting during boot.

The /sbin/rc2.d directory contains files which are linked to /sbin/rc.d directory. When a file starts with letter "S" it is started during booting. And when a file starts with letter "K" it is halted during shutdown.

Check the manpages too.

-Sukant
Who dares he wins
Roberto Volsa
Frequent Advisor

Re: Stopping service startup during boot time

Hi Sukant,
it's ok, but what you are saying is valid if the boot is termined succsefully.
My problem is that boot takes much time (2 hours...) because NFS cannot start; which is the key combination to press in order to stop this NFS infitite starting and continue with boot?
Thanks
Sukant Naik
Trusted Contributor
Solution

Re: Stopping service startup during boot time

Hi Roberto,

If your question is specific to NFS then you need to do a little tweaking of the file /etc/rc.config.d/nfsconf

Here there are parameters like NFS_CLIENT, NFS_SERVER which can be set to 0 (zero), so as to disable making your server as nfs server or an nfs client.

Also, you can break the boot process from the console, by pressing the Break key on the top-left side of your console keyboard.

-Sukant

-Sukant
Who dares he wins