- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- General
- >
- service starting
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- Report Inappropriate Content
12-22-2009 02:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP