- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- service starting
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 02:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 02:34 AM
тАО12-22-2009 02:34 AM
Re: service starting
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1394776
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1394153
- Tags:
- broken URL link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 02:39 AM
тАО12-22-2009 02:39 AM
Solution/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!
Some Examples:
NFS Service
/sbin/init.d/nfs.server stop
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.core stop
/sbin/init.d/nfs.core start
/sbin/init.d/nfs.client start
/sbin/init.d/nfs.server start
Network Service
/sbin/init.d/net stop
/sbin/init.d/net start
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 02:44 AM
тАО12-22-2009 02:44 AM
Re: service starting
"service network restart" in linux is there in hp-ux?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 02:45 AM
тАО12-22-2009 02:45 AM
Re: service starting
Pointing in specific services and check with the corresponding scripts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 02:47 AM
тАО12-22-2009 02:47 AM
Re: service starting
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
rgs,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 12:17 PM
тАО12-22-2009 12:17 PM
Re: service starting
"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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-22-2009 12:37 PM
тАО12-22-2009 12:37 PM
Re: service starting
#!/usr/bin/sh
/sbin/init.d/$@
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.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 03:54 AM
тАО12-23-2009 03:54 AM
Re: service starting
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-23-2009 04:28 AM
тАО12-23-2009 04:28 AM
Re: service starting
NFS services should be stopped/started in following order.
NFS Service
Stopping:
/sbin/init.d/nfs.server stop #(for nfs server)
/sbin/init.d/nfs.client stop
/sbin/init.d/nfs.core stop
Starting:
/sbin/init.d/nfs.core start #(for nfs server)
/sbin/init.d/nfs.client start
/sbin/init.d/nfs.server start