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

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

parent 34409a39
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