X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/0a3cfdec02106998006653f8ad340e996261a3d5..bdada0eacc11f6cfbf3256556d86282a0124ab26:/onak.c diff --git a/onak.c b/onak.c index 9b2021f..7bd8919 100644 --- a/onak.c +++ b/onak.c @@ -6,8 +6,6 @@ * Jonathan McDowell * * Copyright 2002 Project Purple - * - * $Id: onak.c,v 1.22 2004/05/31 14:16:49 noodles Exp $ */ #include @@ -19,6 +17,8 @@ #include "armor.h" #include "charfuncs.h" #include "cleankey.h" +#include "cleanup.h" +#include "config.h" #include "keydb.h" #include "keyid.h" #include "keyindex.h" @@ -55,7 +55,7 @@ void find_keys(char *search, uint64_t keyid, bool ishex, } void usage(void) { - puts("onak " VERSION " - an OpenPGP keyserver.\n"); + puts("onak " PACKAGE_VERSION " - an OpenPGP keyserver.\n"); puts("Usage:\n"); puts("\tonak [options] \n"); puts("\tCommands:\n"); @@ -115,6 +115,7 @@ int main(int argc, char *argv[]) readconfig(configfile); initlogthing("onak", config.logfile); + catchsignals(); if ((argc - optind) < 1) { usage();