mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
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:
@@ -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
|
||||
//
|
||||
|
Reference in New Issue
Block a user