/* (C) 2014 Mika Ilmaranta License: GPLv2 */ #include #include #include #include "globals.h" #include "usage.h" void usage_and_exit(void) { #if defined(FOOLSM_VERSION) printf("%s version %s\n", get_prog(), FOOLSM_VERSION); #endif printf("usage: %s\n" " [-h|--help|-v|--version]\n" " [-c|--config ]\n" " [-p|--pidfile ]\n" " [-f|--no-fork]\n", get_prog()); printf("check syslog for debug/error messages\n"); exit(2); } /* EOF */