2023-06-29 Fred Gleason <fredg@paravelsystems.com>

* Added a 'RDCoreApplication::isUniqueProcess()' static method.
	* Added processuniqueness checks to caed(8), rdairplay(1),
	rdrepld(8), rdrssd(8), rdservice(8), rdvairplayd(8), ripcd(8) and
	rdalsaconfig(8).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2023-06-29 14:54:48 -04:00
parent 6e5c13fc38
commit c92b4dc703
55 changed files with 134 additions and 87 deletions

View File

@@ -2,7 +2,7 @@
//
// Rivendell Services Manager
//
// (C) Copyright 2018-2021 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2018-2023 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
@@ -68,7 +68,7 @@ MainObject::MainObject(QObject *parent)
//
rda=static_cast<RDApplication *>(new RDCoreApplication("rdservice","rdservice",
"\n\n",false,this));
if(!rda->open(&err_msg,&err_type,false)) {
if(!rda->open(&err_msg,&err_type,false,true)) {
rda->syslog(LOG_ERR,"unable to open database [%s]",
err_msg.toUtf8().constData());
exit(RDApplication::ExitNoDb);