Skip to content
Snippets Groups Projects
Commit e1a326e7 authored by Steven Murray's avatar Steven Murray
Browse files

Revert "Revert "Removed 'Do nothing' logic from cta::server::Daemon which...

Revert "Revert "Removed 'Do nothing' logic from cta::server::Daemon which unwantedly kicks in if systemd is used""

This reverts commit ba2116da.

Reverting the revert because nothing changed.  The GitLab CI still
does not succeeed in running the "init" pod.  The commit I made
and then reverted appears to have nothing to do with the problems
of the GitLab CI.
parent ba2116da
No related branches found
No related tags found
No related merge requests found
......@@ -78,11 +78,6 @@ void cta::server::Daemon::setCommandLineHasBeenParsed(const bool foreground)
//------------------------------------------------------------------------------
void cta::server::Daemon::daemonizeIfNotRunInForegroundAndSetUserAndGroup(const std::string &userName,
const std::string &groupName) {
// Do nothing if already a daemon
if (1 == getppid()) {
return;
}
// If the daemon is to be run in the background
if (!m_foreground) {
m_log.prepareForFork();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment