- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Script / inetd
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
Forums
Discussions
Discussions
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
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
07-31-2000 06:24 AM
07-31-2000 06:24 AM
Script / inetd
This is what I have so far.
inedtrunning=$(ps -ef | grep inetd | grep /usr
if [[ -n ${inetdrunning} ]]
then
---------------------
else
---------------------
fi
unset inetdrunning
Thanks, for all help in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2000 06:34 AM
07-31-2000 06:34 AM
Re: Script / inetd
inetdrunning=$(ps -e|grep inetd)
if [[ -n ${inetdrunning ]];
...
I must confess however that I have never had a server where inetd died. I would be looking to HP to cure the problem if that was the case.
Regards,
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2000 06:47 AM
07-31-2000 06:47 AM
Re: Script / inetd
OOPS! Forgot the closing tick mark:
if (( `ps -ef|grep $WHAT|grep -c -v "grep $WHAT"` > 0 ))
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2000 06:47 AM
07-31-2000 06:47 AM
Re: Script / inetd
I'm not sure why you are worried that the superdaemon is/isn't running as it seems you would have/detect lots of problems if it wasn't.
However, one general way to test if a particular process is running is to do the following:
WHAT=inetd
if (( `ps -ef|grep $WHAT|grep -c -v "grep $WHAT" > 0 ))
then
echo "$WHAT running"
else
echo "$WHAT not running"
fi
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2000 10:19 AM
07-31-2000 10:19 AM
Re: Script / inetd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-01-2000 09:48 AM
08-01-2000 09:48 AM
Re: Script / inetd
I'd suggest using a method that will verify that inetd is acutally working. Such as running, telnet $(hostname) 13, which will return the system time. Although, you'll have to devise a method for testing. ie I don't know of a broken inetd that you can test against for error messages. Can a hung inetd be stopped and restarted? etc.
Using such a method will not only catch inetd not running, but other error conditions also.