2014-04-23 02:10:51 +04:00
|
|
|
#include <thread>
|
2014-06-11 12:01:13 +04:00
|
|
|
#include <stdlib.h>
|
2014-04-20 05:54:34 +04:00
|
|
|
#include "Daemon.h"
|
2014-12-10 12:07:25 -05:00
|
|
|
#include "Reseed.h"
|
2014-02-05 01:28:18 +01:00
|
|
|
|
2015-09-18 14:19:06 +02:00
|
|
|
int main(int argc, char* argv[])
|
2013-12-10 08:05:42 -05:00
|
|
|
{
|
2015-09-18 14:19:06 +02:00
|
|
|
if(!Daemon.init(argc, argv))
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
|
|
|
|
if(Daemon.start()) {
|
|
|
|
while (Daemon.running) {
|
2015-07-16 23:29:52 +02:00
|
|
|
//TODO Meeh: Find something better to do here.
|
|
|
|
std::this_thread::sleep_for (std::chrono::seconds(1));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
Daemon.stop();
|
|
|
|
return EXIT_SUCCESS;
|
2013-12-10 08:05:42 -05:00
|
|
|
}
|