2014-04-22 22:10:51 +00:00
|
|
|
#include <thread>
|
2014-06-11 08:01:13 +00:00
|
|
|
#include <stdlib.h>
|
2014-04-20 01:54:34 +00:00
|
|
|
#include "Daemon.h"
|
2014-12-10 17:07:25 +00:00
|
|
|
#include "Reseed.h"
|
2014-02-05 00:28:18 +00:00
|
|
|
|
2015-09-18 12:19:06 +00:00
|
|
|
int main(int argc, char* argv[])
|
2013-12-10 13:05:42 +00:00
|
|
|
{
|
2015-09-18 12:19:06 +00:00
|
|
|
if(!Daemon.init(argc, argv))
|
|
|
|
return EXIT_FAILURE;
|
|
|
|
|
|
|
|
if(Daemon.start()) {
|
|
|
|
while (Daemon.running) {
|
2015-07-16 21:29:52 +00: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 13:05:42 +00:00
|
|
|
}
|