- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: disabling unnecessary startup scripts
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-15-2009 08:30 PM
тАО12-15-2009 08:30 PM
Could you please help me how to disable unnecessary HPUX startup scripts. This is a part of our Auditing.
Here are the following details:
OS: HP-UX B.11.11
Model: 9000/800/rp8440
Kindly let me know if you need further input.
Thanks to all in advance for responding to this thread.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2009 08:46 PM
тАО12-15-2009 08:46 PM
Re: disabling unnecessary startup scripts
1. If you want to disable a script in /etc/rc.config.d/
For example:
if you want to disable cron, which is a startup service in /sbin/rc.2d/S270cron
a. change the value to CRON=0 in /etc/rc.config.d/cron or remove the startup script from /sbin/rc2.d/S270cron script from its location.
-Vivek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2009 08:46 PM
тАО12-15-2009 08:46 PM
Re: disabling unnecessary startup scripts
in this case would request more info from "Auditor" if have any standard procedure or template as per your current organisation can follow, normally we d'not stop ant startup scripts in HPUX
may be some services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2009 08:57 PM
тАО12-16-2009 08:57 PM
Re: disabling unnecessary startup scripts
The following is a list of default startup scripts that could be disabled unless required:
In directory /etc/rc2.d:
No. Script Name Comments
1 S20sysetup Print the system configuration upon startup
2 S47asppp Starts the PPP daemon
3 S70uucp Cleans up uucp lock files
4 S71ldap.client Starts ldap_cachemgr
5 S72autoinstall Auto mount (generally used for NIS, NIS+).
6 S73nfs.client Start lockd and statd;mount remote file systems
7 S74autofs Start the automounter daemon
8 S76nscd Start up the name service cache daemon
9 S80PRESERVE Recovers data from unsaved vi sessions
10 S80spc SunSoft Print - Client
11 S80lp Start the line printer scheduler
12 S85power Power management
13 S88sendmail Sendmail daemon
14 S73cachefs.daemon, S93cacheos.finish Starts up cachefs file systems
In directory /etc/rc3.d:
No. Script Name Comments
1 S15nfs.server Startup remote file sharing daemons
2 S50apache Startup http daemon
3 S76snmpdx, S77dmi Startup snmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2009 09:17 PM
тАО12-16-2009 09:17 PM
Re: disabling unnecessary startup scripts
> unnecessary HPUX startup scripts. [...]
How should we know which scripts are
"unnecessary" in your environment?
> The following is a list of default startup
> scripts that could be disabled unless
> required:
That's great. How should we know what's
"required" in your environment?
> 6 S73nfs.client Start lockd and statd;mount remote file systems
> 7 S74autofs Start the automounter daemon
> 1 S15nfs.server Startup remote file sharing daemons
Are you using NFS or not? How should I know?
Many of these scripts do approximately
nothing if some service is not configured, so
it really matters little if the script is run
or not.
Perhaps you should disable all of them, see
what stops working, and then re-enable what
you need.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-16-2009 09:21 PM
тАО12-16-2009 09:21 PM
Re: disabling unnecessary startup scripts
the file you mentioned are soft link file under
rc2 & rc3,
easy way to rename softlink inference
Example :-
mv S88sendmail s88sendmail
or you can edit the NFS client startup file
set VALUE=1 to 0 so it won't startup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2009 01:28 AM
тАО12-17-2009 01:28 AM
Solution> 10 S80spc SunSoft Print - Client
> In directory /etc/rc3.d:
Wait a second. In HP-UX, the directories are different: the rcN.d directories are located in /sbin, not in /etc. Also the symlink naming scheme typically uses three numbers, not two. And "SunSoft Print - Client" is definitely not standard part of the HP-UX operating system.
Your auditors have probably given you a Sun Solaris list instead of a HP-UX one.
In HP-UX, the standard way to disable unnecessary services is to edit the appropriate configuration variables in /etc/rc.config.d/* files, causing the unnecessary scripts to be skipped.
If you change any of the standard scripts in /sbin/init.d or the standard links in /sbin/rc?.d directories, your changes may be overwritten when you next install a HP-UX patch that includes fixes for startup scripts. As a consequence, a service that you have disabled by changing the links might become re-enabled without any notice.
If your auditors don't know this, I think their HP-UX knowledge is clearly insufficient for the auditing job.
I see their list also suggests disabling the power management. This might cause the system to consume more power than necessary, producing more heat and thus requiring more cooling. As the companies today may/should be trying to be reducing their carbon footprint and be more eco-friendly in general, this advice may actually be somewhat harmful to the company's objectives.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-17-2009 10:47 PM
тАО12-17-2009 10:47 PM
Re: disabling unnecessary startup scripts
Specially thanks to MK for your detailed explanation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-21-2009 12:32 AM
тАО12-21-2009 12:32 AM
Re: disabling unnecessary startup scripts
Specially thanks to MK for your detailed explanation.