2018-01-31 Fred Gleason <fredg@paravelsystems.com>

* Converted rdrepld(8) to use RDApplication.
This commit is contained in:
Fred Gleason
2018-01-31 03:11:17 -05:00
parent 99814a9f00
commit 2103fa72c1
10 changed files with 56 additions and 121 deletions

View File

@@ -2,7 +2,7 @@
//
// The Rivendell Replicator Daemon
//
// (C) Copyright 2010,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2010,2016-2018 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -26,12 +26,10 @@
#include <qobject.h>
#include <qtimer.h>
#include <rdcheck_daemons.h>
#include <rdsystem.h>
#include <rdstation.h>
#include <rdconfig.h>
#include <rdcheck_daemons.h>
#include <replfactory.h>
#include "replfactory.h"
#define RDREPLD_USAGE "[-d][--event-id=<id>]\n\nOptions:\n\n-d\n Set 'debug' mode, causing rdrepld(8) to stay in the foreground\n and print debugging info on standard output.\n\n"
#define RD_RDREPLD_PID "rdrepl.pid"
@@ -53,8 +51,6 @@ class MainObject : public QObject
void FreeReplicators();
QTimer *repl_loop_timer;
QString repl_temp_dir;
RDStation *repl_station;
QSqlDatabase *repl_db;
std::vector<ReplFactory *> repl_replicators;
bool debug;
};