Solved

kill -HUP won't restart program

Posted on 1997-07-15
5
1,079 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
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 100 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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

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…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

828 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