case "$1" in
start)
echo "Starting the Storage daemon"
- @sbindir@/bacula-sd $2 -c @sysconfdir@/bacula-sd.conf
+ @sbindir@/bacula-sd $2 -v -c @sysconfdir@/bacula-sd.conf
echo "Starting the File daemon"
- @sbindir@/bacula-fd $2 -c @sysconfdir@/bacula-fd.conf
+ @sbindir@/bacula-fd $2 -v -c @sysconfdir@/bacula-fd.conf
sleep 2
echo "Starting the Director daemon"
- @sbindir@/bacula-dir $2 -c @sysconfdir@/bacula-dir.conf
+ @sbindir@/bacula-dir $2 -v -c @sysconfdir@/bacula-dir.conf
;;
stop)
echo "Stopping the File daemon"
char ed1[30];
stime = jr->SchedTime;
+ ASSERT(stime != 0);
localtime_r(&stime, &tm);
strftime(dt, sizeof(dt), "%Y-%m-%d %T", &tm);
sm_check(__FILE__, __LINE__, True);
init_msg(jcr, jcr->messages);
create_unique_job_name(jcr, jcr->job->hdr.name);
+ set_jcr_job_status(jcr, JS_Created);
jcr->jr.SchedTime = jcr->sched_time;
jcr->jr.StartTime = jcr->start_time;
jcr->jr.Type = jcr->JobType;
time_t now = time(NULL);
/* Wait until scheduled time arrives */
+ if (jcr->sched_time > now && verbose) {
+ Jmsg(jcr, M_INFO, 0, _("Waiting %d seconds for sched time.\n"),
+ jcr->sched_time - now);
+ }
while (jcr->sched_time > now) {
Dmsg2(100, "Waiting on sched time, jobid=%d secs=%d\n", jcr->JobId,
jcr->sched_time - now);
NPRT(jcr->client->hdr.name),
NPRT(jcr->store->hdr.name),
bstrutime(dt, sizeof(dt), jcr->sched_time));
+ jcr->JobLevel = L_FULL;
break;
case JT_BACKUP:
case JT_VERIFY:
jcr->RestoreJobId = atoi(ua->cmd);
}
}
- jcr->JobLevel = 'F'; /* default level */
+ jcr->JobLevel = L_FULL; /* default level */
Dmsg1(20, "JobId to restore=%d\n", jcr->RestoreJobId);
bsendmsg(ua, _("Run Restore job\n\
JobName: %s\n\
JCR *jcr;
Dmsg0(200, "Enter new_jcr\n");
- jcr = (JCR *) malloc(size);
+ jcr = (JCR *)malloc(size);
memset(jcr, 0, size);
jcr->my_thread_id = pthread_self();
jcr->sched_time = time(NULL);