Changeset dea8cfad263f3915a086c4fb0194ae1aab3c52d9

Show
Ignore:
Timestamp:
05/30/08 16:27:58 (6 years ago)
Author:
Mark Harrison <mark@omniti.com>
git-committer:
Mark Harrison <mark@omniti.com> 1212164878 +0000
git-parent:

[09d0def7135249d23ed89a69e0dd0f94425a618f]

git-author:
Mark Harrison <mark@omniti.com> 1212164878 +0000
Message:

Adding reload support to the resmon init script, and changed the web server child process to ignore the HUP signal so killproc -HUP (and killall -HUP) will work correctly.

git-svn-id: https://labs.omniti.com/resmon/trunk@117 8c0face9-b7db-6ec6-c4b3-d5f7145c7d55

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lib/Resmon/Status.pm

    r289bfd1 rdea8cfa  
    308308  if($self->{child} == 0) { 
    309309    eval { 
     310      $SIG{'HUP'} = 'IGNORE'; 
    310311      while(my $client = $handle->accept) { 
    311312        my $req; 
  • rc/resmon

    r4a0f8e2 rdea8cfa  
    4444        start 
    4545}        
     46reload() { 
     47        echo -n $"Reloading resmon: " 
     48        killproc resmon -HUP 
     49        echo 
     50        return $? 
     51} 
    4652 
    4753case "$1" in 
     
    5561        rhstatus 
    5662        ;; 
    57   restart|reload
     63  restart
    5864        restart 
     65        ;; 
     66  reload) 
     67        reload 
    5968        ;; 
    6069  condrestart)