From c2e87beb993116dca58eb610c6f23e6936dcd9b9 Mon Sep 17 00:00:00 2001 From: psychon Date: Fri, 20 Nov 2009 16:42:44 +0000 Subject: [PATCH] Document the signals This adds the new SIGUSR1 handling to README and adds a section on SIGINT, SIGHUP and SIGUSR1 to znc's man page. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1667 726aef4b-f618-498e-8847-2d620e286838 --- README | 5 +++++ man/znc.1 | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/README b/README index d9429f86..056bfdf7 100644 --- a/README +++ b/README @@ -119,6 +119,11 @@ To rehash the config file, you can send ZNC SIGHUP via or you can login to znc and use /msg *status rehash +If you changed some settings while znc is running, a simple + pkill -SIGUSR1 znc +will make ZNC rewrite its config file. Alternatively you can use this: + /msg *status saveconfig + Writing own modules ------------------- diff --git a/man/znc.1 b/man/znc.1 index 54287482..e399571e 100644 --- a/man/znc.1 +++ b/man/znc.1 @@ -79,6 +79,22 @@ This is the server certificate .B znc uses. You need this for SSL. +.SH SIGNALS +This section explains how +.B znc +reacts to different signals: +.TP +.B SIGINT +Exit ZNC. This is equivalent to +.I /znc shutdown +.TP +.B SIGHUP +Reload znc.conf. This is equivalent to +.I /znc rehash +.TP +.B SIGUSR1 +Rewrite znc.conf. This is equivalent to +.I /znc saveconfig .SH FILES .TP .I /usr/local/share/znc/