HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NFS startup scripts returns a wrong code
Operating System - HP-UX
1833953
Members
1869
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
11-11-2003 06:49 PM
11-11-2003 06:49 PM
Hi
I disabled both NFS client and server in my box. But when the system boots up it shows both NFS client and server have been started fine (OK).
I realized that the exit status is 0 despite of value assigned to variables in /etc/rc.config.d/nfsconf.
The script /sbin/init.d/nfs.server has the following lines:
if [ "$NFS_SERVER" -ne 1 ];then
echo NFS_SERVER not set to one in /etc/rc.config.d/nfsconf, exiting.
exit 0
fi
I think the exit code should be 2 according to manual pages rc(1M).
Will this report be taken in account next time a NFS patch is released or will it be sent to "recycle bin" ?
I'm fed up of changing these scripts after installing NFS patches in all my boxes.
I disabled both NFS client and server in my box. But when the system boots up it shows both NFS client and server have been started fine (OK).
I realized that the exit status is 0 despite of value assigned to variables in /etc/rc.config.d/nfsconf.
The script /sbin/init.d/nfs.server has the following lines:
if [ "$NFS_SERVER" -ne 1 ];then
echo NFS_SERVER not set to one in /etc/rc.config.d/nfsconf, exiting.
exit 0
fi
I think the exit code should be 2 according to manual pages rc(1M).
Will this report be taken in account next time a NFS patch is released or will it be sent to "recycle bin" ?
I'm fed up of changing these scripts after installing NFS patches in all my boxes.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2003 08:30 PM
11-11-2003 08:30 PM
Solution
You are right about the wrong exit code from the script, but does it really matter if it results in an OK instead of N/A ?
If you want this fixed I think you need to report this directly to HP, not this forum.
If you want this fixed I think you need to report this directly to HP, not this forum.
Every problem has at least one solution. Only some solutions are harder to find.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 03:38 AM
11-13-2003 03:38 AM
Re: NFS startup scripts returns a wrong code
Hello,
I've seen this when people make a copy of nfsconf in /etc/rc.config.d
When you do this, remember that the HP-UX startup scripts source all the files in /etc/rc.config.d/, so if you have a copy of nfsconf like nfsconf.orig, whatever value is there will be the last one referenced, and therefore the behavior you see with the NFS functionality not being disabled.
Moral of the story, keep your backup files in another director, e.g. /etc/rc.config.old.d
Hope that helps,
-> Brian Hackley
I've seen this when people make a copy of nfsconf in /etc/rc.config.d
When you do this, remember that the HP-UX startup scripts source all the files in /etc/rc.config.d/, so if you have a copy of nfsconf like nfsconf.orig, whatever value is there will be the last one referenced, and therefore the behavior you see with the NFS functionality not being disabled.
Moral of the story, keep your backup files in another director, e.g. /etc/rc.config.old.d
Hope that helps,
-> Brian Hackley
Ask me about telecommuting!
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP