HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: inetd environment
Operating System - HP-UX
1833877
Members
2077
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
02-28-2005 04:35 AM
02-28-2005 04:35 AM
I'd like to pass a few of specific environment variables to servers started by inetd.
What is the best way to do it?
What is the best way to do it?
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2005 04:46 AM
02-28-2005 04:46 AM
Re: inetd environment
You can try modifying the /sbin/init.d/inetd script and put your export statements before then inetd invocation in the start) section. I'm don't know if inetd does a subsequent putenv() that would wipe out any unexpected env variables.
If it ain't broke, I can fix that.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2005 05:07 AM
02-28-2005 05:07 AM
Re: inetd environment
Hey Domenico,
You should edit /etc/inetd.conf and add the env variables you want the services to run with ... this will allow the daemon to run with the specific parameter from within inetd.
You should edit /etc/inetd.conf and add the env variables you want the services to run with ... this will allow the daemon to run with the specific parameter from within inetd.
Together We Stand!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2005 03:18 PM
02-28-2005 03:18 PM
Solution
You could edit the inetd file in /sbin/init.d but this file may be replaced at any time in the future by a patch. Configurations for startup scripts (like inetd) are handled in the /etc/rc.config.d directory. There is no specific inetd file in that directory so you can add the new env values in /etc/rc.config to a new file called /etc/rc.config.d/inetd. whatever is in that script will be added to the startup environment.
Bill Hassell, sysadmin
Bill Hassell, sysadmin
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