]> the.earth.li Git - onak.git/blobdiff - cleanup.c
0.6.3 release
[onak.git] / cleanup.c
index 97d02c548bec9b27fbae1449bb59579930dc0bee..95f74ddc3a867c8c63ba28b4a54a4ab8cc29e414 100644 (file)
--- a/cleanup.c
+++ b/cleanup.c
  * more details.
  *
  * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 51
- * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ * this program.  If not, see <https://www.gnu.org/licenses/>.
  */
 
 #include <signal.h>
 #include <stdbool.h>
-#include <stdlib.h>
-#include <string.h>
 
 #include "cleanup.h"
-#include "keydb.h"
 #include "log.h"
+#include "onak-conf.h"
 
 static bool should_cleanup = false;
 
@@ -76,6 +73,10 @@ void sig_cleanup(int signal)
  */
 void catchsignals(void)
 {
+       if (config.use_keyd) {
+               return;
+       }
+
        logthing(LOGTHING_INFO, "Catching signals");
 
        signal(SIGALRM, &sig_cleanup);