12-22-2009 02:34 AM
12-22-2009 02:39 AM
/sbin/rc*.d directories determine at which run levels services start and stop.
/sbin/rc runs S scripts to start services during system startup.
/sbin/rc runs K scripts to kill services during system shutdown.
Every service started by /sbin/rc has an associated script in /sbin/init.d.
/sbin/init.d scripts contain code needed to start/kill services.
/sbin/rc*.d/* scripts are just symbolic links to /sbin/init.d scripts!
12-22-2009 02:47 AM
The file /etc/services associates official service names and aliases with the port number and protocol the services use. For each service a single line should be present with the following information:
Port numbers 0 through 1023 are assigned by RFC 1700. This RFC also lists the conventional use of various ports with numbers greater than 1023.
Aliases are other names under which a service is known. Library routines such as getservbyname() can be invoked with a service alias instead of the service official name. For example:
shell 514/tcp cmd
12-22-2009 12:17 PM
"service network restart" in linux is there in hp-ux?"
nope...remember the GNU means "Gnu's not UNIX."
you start and stop the various components with the "rc" scripts noted previously
12-22-2009 12:37 PM
Now you can pretend that you are running Linux and type something like:
service xntpd stop
and it will work. But:
service sendmail restart
won't work because HP-UX ain't Linux. The start/stop (rc) scripts only recognize start and stop, not restart. Likewise,
service network start
won't work because there is no start/stop script in /sbin/init.d called network.
Which means you need to learn more about HP-UX system administration.
12-23-2009 04:28 AM
NFS services should be stopped/started in following order.
/sbin/init.d/nfs.server stop #(for nfs server)
/sbin/init.d/nfs.core start #(for nfs server)