| 1 | /* |
| 2 | ** Copyright 2016 Double Precision, Inc. See COPYING for |
| 3 | ** distribution information. |
| 4 | */ |
| 5 | |
| 6 | #include <iostream> |
| 7 | #include <stdlib.h> |
| 8 | |
| 9 | extern "C" { |
| 10 | |
| 11 | #include "courierauthdebug.h" |
| 12 | |
| 13 | int start(); |
| 14 | }; |
| 15 | |
| 16 | int main(int argc, char **argv) |
| 17 | { |
| 18 | courier_authdebug_login_init(); |
| 19 | |
| 20 | if (argc > 1) |
| 21 | { |
| 22 | std::cerr << |
| 23 | "Error: authdaemond no longer handles its own daemonizing." |
| 24 | << std::endl |
| 25 | << "Use new startup script." << std::endl; |
| 26 | exit(1); |
| 27 | } |
| 28 | |
| 29 | start(); |
| 30 | return (0); |
| 31 | } |