*
*/
/*
- Copyright (C) 2000-2003 Kern Sibbald and John Walker
+ Copyright (C) 2000-2004 Kern Sibbald and John Walker
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
init_stack_dump(); /* pick up new pid */
}
- drop(uid, gid);
-
create_pid_file(me->pid_directory, "bacula-sd", me->SDport);
+ drop(uid, gid);
+
/* Ensure that Volume Session Time and Id are both
* set and are both non-zero.
*/
continue;
}
if (device->cap_bits & CAP_ALWAYSOPEN) {
- Dmsg1(20, "calling open_device %s\n", device->device_name);
- if (!open_device(device->dev)) {
+ Dmsg1(20, "calling first_open_device %s\n", device->device_name);
+ if (!first_open_device(device->dev)) {
Emsg1(M_ERROR, 0, _("Could not open device %s\n"), device->device_name);
}
}