HP3000-L Archives

July 2001, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Mark Bixby <[log in to unmask]>
Reply To:
Mark Bixby <[log in to unmask]>
Date:
Fri, 20 Jul 2001 14:47:22 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (52 lines)
Hi HP3000-L,

Let me consolidate a couple of inetd threads here into a single message.

As described at:

        http://docs.hp.com/mpeix/onlinedocs/32650-90898/00/00/12-con.html

Inetd allows you to execute INETD.NET.SYS with the -c, -k, and -l parameters to
control the operation of the currently running inetd job.

However, what that manual DOESN'T say is that -c, -k and -l are really just
sending POSIX signals to the inetd job, and when the inetd parent process
receives those signals, action is taken.  If you want to, you can just send
these signals directly with your own kill command.

The HPUX man page for inetd describes which signals are used:

-c = SIGHUP
-k = SIGTERM
-l = SIGQUIT

I just tested all of these on invent3k, and they work as advertised.  For
example, to manually do a -k:

INVENT3K:/CSY/PUB$ callci 'showjob job=jinetd,manager.sys'

JOBNUM  STATE IPRI JIN  JLIST    INTRODUCED  JOB NAME

#J223   EXEC        10S LP       FRI  2:35P  JINETD,MANAGER.SYS

JOBFENCE= 7; JLIMIT= 30; SLIMIT= 60

INVENT3K:/CSY/PUB$ ps -ef | grep INETD
      MANAGER.SYS  350814363  353239215  0   Dec 31 ldev10   0:00 INETD.NET.SYS
info=-l
INVENT3K:/CSY/PUB$ kill -TERM 350814363
INVENT3K:/CSY/PUB$ callci 'showjob job=jinetd,manager.sys'
 NO SUCH JOB(S)
JOBFENCE= 7; JLIMIT= 30; SLIMIT= 60

The ps/grep/kill could have been condensed into a single generic command
string:

kill -TERM $(ps -ef | grep INETD | awk '{print $2}')
--
[log in to unmask]
Remainder of .sig suppressed to conserve scarce California electrons...

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2