2022-12-24 Fred Gleason <fredg@paravelsystems.com>

* Added a 'ServiceStartDelay=' directive to the '[Tuning]' section
	of rd.conf(5).
	* Added 'sound.target' to the 'After=' directive in
	'systemd/rivendell.service.in'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-12-24 11:15:48 -05:00
parent eb3cf2f127
commit b59e3b8479
8 changed files with 64 additions and 4 deletions

View File

@@ -120,6 +120,15 @@ MainObject::MainObject(QObject *parent)
}
}
//
// Startup Delay
//
if(rda->config()->serviceStartupDelay()>0) {
rda->syslog(LOG_INFO,"delaying startup for %d seconds",
rda->config()->serviceStartupDelay());
sleep(rda->config()->serviceStartupDelay()); // Blunt object, but it works!
}
//
// Exit Timer
//