2018-08-10 Fred Gleason <fredg@paravelsystems.com>

* Changed installation location of caed(8), ripcd(8), rdcatchd(8)
	and rdrepld(8) from '@prefix@/bin' to '@prefix@/sbin'.
	* Removed code to detach from controlling terminal after startup
	from caed(8), ripcd(8), rdcatchd(8)
	and rdrepld(8).
	* Removed code to manage dropbox instances from rdcatchd(8).
	* Removed code to start service daemons automatically from
	user modules.
	* Added rdservice(8).
This commit is contained in:
Fred Gleason
2018-08-10 06:09:16 -04:00
parent 523c93c461
commit 223bdc2f84
53 changed files with 986 additions and 526 deletions

View File

@@ -2,7 +2,7 @@
##
## Rivendell Interprocess Communication Daemon Makefile.am
##
## (C) Copyright 2002-2006 Fred Gleason <fredg@paravelsystems.com>
## (C) Copyright 2002-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
@@ -29,7 +29,7 @@ moc_%.cpp: %.h
$(MOC) $< -o $@
bin_PROGRAMS = ripcd
sbin_PROGRAMS = ripcd
dist_ripcd_SOURCES = acu1p.cpp acu1p.h\
am16.cpp am16.h\

View File

@@ -40,7 +40,6 @@
#include <rdapplication.h>
#include <rdconf.h>
#include <rdcheck_daemons.h>
#include <rdescape_string.h>
#include <rdnotification.h>
@@ -83,15 +82,6 @@ MainObject::MainObject(QObject *parent)
exit(1);
}
//
// Make sure we're the only instance running
//
if(RDCheckDaemon(RD_RIPCD_PID)) {
LogLine(RDConfig::LogErr,
"ERROR ripcd aborting - multiple instances not allowed");
exit(1);
}
//
// Initialize Data Structures
//
@@ -139,19 +129,12 @@ MainObject::MainObject(QObject *parent)
//
rda->cae()->connectHost();
if(qApp->argc()==1) {
RDDetach(rda->config()->logCoreDumpDirectory());
}
else {
if(qApp->argc()!=1) {
debug=true;
}
::signal(SIGCHLD,SigHandler);
::signal(SIGTERM,SigHandler);
::signal(SIGINT,SigHandler);
if(!RDWritePid(RD_PID_DIR,"ripcd.pid",rda->config()->uid())) {
fprintf(stderr,"ripcd: can't write pid file\n");
exit(1);
}
//
// The RML Sockets
@@ -447,7 +430,6 @@ void MainObject::exitTimerData()
}
}
LogLine(RDConfig::LogInfo,"ripcd exiting normally");
RDDeletePid(RD_PID_DIR,"ripcd.pid");
exit(0);
}
}