Changeset dea8cfad263f3915a086c4fb0194ae1aab3c52d9
- Timestamp:
- 05/30/08 16:27:58
(5 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
| r289bfd1 |
rdea8cfa |
|
| 308 | 308 | if($self->{child} == 0) { |
|---|
| 309 | 309 | eval { |
|---|
| | 310 | $SIG{'HUP'} = 'IGNORE'; |
|---|
| 310 | 311 | while(my $client = $handle->accept) { |
|---|
| 311 | 312 | my $req; |
|---|
| r4a0f8e2 |
rdea8cfa |
|
| 44 | 44 | start |
|---|
| 45 | 45 | } |
|---|
| | 46 | reload() { |
|---|
| | 47 | echo -n $"Reloading resmon: " |
|---|
| | 48 | killproc resmon -HUP |
|---|
| | 49 | echo |
|---|
| | 50 | return $? |
|---|
| | 51 | } |
|---|
| 46 | 52 | |
|---|
| 47 | 53 | case "$1" in |
|---|
| … | … | |
| 55 | 61 | rhstatus |
|---|
| 56 | 62 | ;; |
|---|
| 57 | | restart|reload) |
|---|
| | 63 | restart) |
|---|
| 58 | 64 | restart |
|---|
| | 65 | ;; |
|---|
| | 66 | reload) |
|---|
| | 67 | reload |
|---|
| 59 | 68 | ;; |
|---|
| 60 | 69 | condrestart) |
|---|