mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
20 lines
423 B
C++
20 lines
423 B
C++
#include <thread>
|
|
#include <stdlib.h>
|
|
#include "Daemon.h"
|
|
#include "Reseed.h"
|
|
|
|
int main(int argc, char* argv[])
|
|
{
|
|
if(!Daemon.init(argc, argv))
|
|
return EXIT_FAILURE;
|
|
|
|
if(Daemon.start()) {
|
|
while (Daemon.running) {
|
|
//TODO Meeh: Find something better to do here.
|
|
std::this_thread::sleep_for (std::chrono::seconds(1));
|
|
}
|
|
}
|
|
Daemon.stop();
|
|
return EXIT_SUCCESS;
|
|
}
|