2019-03-21 Fred Gleason <fredg@paravelsystems.com>

* Added a startup check for the 'rivendell' service.
This commit is contained in:
Fred Gleason
2019-03-21 17:13:46 -04:00
parent de6d386316
commit e5b6a7ec0a
17 changed files with 213 additions and 16 deletions

View File

@@ -2,7 +2,7 @@
//
// Rivendell PAD Consolidation Server
//
// (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2018-2019 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
@@ -49,12 +49,13 @@ MainObject::MainObject(QObject *parent)
: QObject(parent)
{
QString err_msg;
RDApplication::ErrorType err_type=RDApplication::ErrorOk;
//
// Open the Database
//
rda=new RDApplication("rdpadengined","rdpadengined",RDPADENGINED_USAGE,this);
if(!rda->open(&err_msg)) {
if(!rda->open(&err_msg,&err_type,false)) {
fprintf(stderr,"rdpadengined: %s\n",(const char *)err_msg);
exit(1);
}