Added --install flag.

This commit is contained in:
EinMByte 2015-09-18 14:19:06 +02:00
parent c741382fc9
commit 3ef89718a1
5 changed files with 84 additions and 9 deletions

View file

@ -3,13 +3,13 @@
#include "Daemon.h"
#include "Reseed.h"
int main( int argc, char* argv[] )
int main(int argc, char* argv[])
{
Daemon.init(argc, argv);
if (Daemon.start())
{
while (Daemon.running)
{
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));
}