?
Solved

kill -HUP won't restart program

Posted on 1997-07-15
5
Medium Priority
?
1,084 Views
Last Modified: 2013-12-27
Any pointers as to what can cause the above ?  The program simple get's killed.  Specific program in question is Netscape's Enterprise Server v2.01.  But I have a couple of other perl scripts that are supposed to restart when given SIGHUP.  Using Solaris 2.5.1 fully patched.
0
Comment
Question by:suave
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2006551
SIGHUP must be handled by the application receiving the signal.
If the appropriate signal handler exits, you loose or must patch
the application :-(
0
 

Author Comment

by:suave
ID: 2006552
I know this.

The application (in this case Netscape Enterprise Server v2.01) is supposed to handle SIGHUP.  The version of the program on a Solaris 2.5 box works flaulesly (ie kill -HUP restarts it), still on this 2.5.1 it simply dies.
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2006553
may be using
      trace netscape
(or was it strace on Solaris?) give you a hint what's going wrong
Compare the output on Solaris 2.5 and 2.5.1 (if possible).
0
 
LVL 4

Expert Comment

by:rembo
ID: 2006554


I recommend using truss -f instead of trace.  Trace won't
this will following through execs.  If you hang a truss
on your Enterprise Server and post the output from sending
a SIGHUP, I'd be happy to help you debug it.

-TOny

0
 
LVL 1

Accepted Solution

by:
gabsi earned 200 total points
ID: 2006555
By default, any signal stops the program who receive it.
There is no signal that can automaticlly restart programs or any thing else.
Only kill -KILL is a system way to stop a program.
All other signals have to be managed by the application itself.
The name of a signal is only a way for programmers to use the same signal to do the same thing.
By default, any signal stops the program who receive it.
If the program handle the signal, so it can do some thing esle when he receives it.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question