mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Add a command for rehashing TLS profiles to the helper script.
This commit is contained in:
parent
af95088ae3
commit
7f50113d83
@ -146,11 +146,12 @@ sub cmd_status()
|
||||
}
|
||||
}
|
||||
|
||||
sub cmd_rehash()
|
||||
sub signal($)
|
||||
{
|
||||
my $sig = shift;
|
||||
if (getstatus() == 1) {
|
||||
my $pid = getprocessid();
|
||||
kill HUP => $pid;
|
||||
kill $sig => $pid;
|
||||
print "InspIRCd rehashed (pid: $pid).\n";
|
||||
exit GENERIC_EXIT_SUCCESS;
|
||||
} else {
|
||||
@ -159,6 +160,17 @@ sub cmd_rehash()
|
||||
}
|
||||
}
|
||||
|
||||
sub cmd_rehash()
|
||||
{
|
||||
signal 'HUP';
|
||||
}
|
||||
|
||||
sub cmd_sslrehash()
|
||||
{
|
||||
signal 'USR1';
|
||||
}
|
||||
|
||||
|
||||
sub cmd_cron()
|
||||
{
|
||||
if (getstatus() == 0) { goto &cmd_start(@_); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user