Add a command for rehashing TLS profiles to the helper script.

This commit is contained in:
Sadie Powell 2024-11-27 10:39:50 +00:00
parent af95088ae3
commit 7f50113d83

View File

@ -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(@_); }