mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2024-10-31 09:20:38 +00:00
19 lines
281 B
C++
19 lines
281 B
C++
#include <thread>
|
|
#include <stdlib.h>
|
|
#include "Daemon.h"
|
|
|
|
int main( int argc, char* argv[] )
|
|
{
|
|
Daemon.init(argc, argv);
|
|
if (Daemon.start())
|
|
{
|
|
while (Daemon.running)
|
|
{
|
|
std::this_thread::sleep_for (std::chrono::seconds(1));
|
|
}
|
|
}
|
|
Daemon.stop();
|
|
return EXIT_SUCCESS;
|
|
}
|
|
|