Add plugin 'sighup'
This commit is contained in:
parent
56b9db74ae
commit
4664245b8b
2 changed files with 10 additions and 1 deletions
8
plugins/sighup
Normal file
8
plugins/sighup
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Attempt to restart on SIGHUP
|
||||
|
||||
$SIG{HUP} = sub {
|
||||
call_hooks("restart_exec");
|
||||
no warnings qw(exec);
|
||||
exec $0;
|
||||
call_hooks("restart_survived");
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue