wd->destructor = job_monitor_destructor;
wd->one_shot = false;
wd->interval = 60;
- wd->data = create_control_jcr("*JobMonitor*", JT_SYSTEM);
+ wd->data = new_control_jcr("*JobMonitor*", JT_SYSTEM);
register_watchdog(wd);
return;
}
-
/*
* Run a job -- typically called by the scheduler, but may also
* be called by the UA (Console program).
*/
if (status != 0) {
if (jcr->JobStatus == JS_Terminated) {
- Jmsg(jcr, M_ERROR, 0, _("RunAfterJob returned non-zero status=%d\n"),
+ Jmsg(jcr, M_WARNING, 0, _("RunAfterJob returned non-zero status=%d\n"),
status);
} else {
Jmsg(jcr, M_FATAL, 0, _("RunAfterFailedJob returned non-zero status=%d\n"),
jcr->catalog = job->client->catalog;
jcr->fileset = job->fileset;
jcr->messages = job->messages;
+ jcr->spool_data = job->spool_data;
if (jcr->RestoreBootstrap) {
free(jcr->RestoreBootstrap);
jcr->RestoreBootstrap = NULL;