View Issue Details

IDProjectCategoryView StatusLast Update
0000432bareos-corestorage daemonpublic2015-06-17 12:11
Reportertylla Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSDebianOS Version7
Product Version14.2.2 
Fixed in Version14.4.0 
Summary0000432: The file bareos-sd.service is missing from the Debian package
DescriptionThe file bareos-sd.service is missing from the Debian package and so the Storage Daemon cannot be started when SystemD is used on the machine.
Steps To Reproduce1. add repository to Debian 7.x
  deb http://download.bareos.org/bareos/release/latest/Debian_7.0 ./
2. install bareos
  apt-get install bareos
3. configure the DB settings
4. try to start bareos storage daemon
#/etc/init.d/bareos-sd start
Starting bareos-sd (via systemctl): bareos-sd.serviceFailed to issue method call: Unit bareos-sd.service failed to load: No such file or directory. See system logs and 'systemctl status bareos-sd.service' for details.
Additional InformationWorkaround:
I downloaded the latest RedHat package (bareos-storage-14.4.0.git.1424186207.c0b2f27-1086.1.el7.x86_64.rpm) and I found there the bareos-sd.service file in the /usr/lib/systemd/system subdirectory and I copied it out from there. Now it works.

Btw: my system uses systemd instead of sysvinit.
I think that the storage daemon would have started OK if I would use sysvinit.
Nevertheless, I think this should be fixed in the Debian package.

Just generate the bareos-sd.service in to the /lib/systemd/system directory
TagsNo tags attached.

Activities

joergs

joergs

2015-06-17 12:11

developer   ~0001770

I added systemd service files for Debian >= 8 and Ubuntu >= 15.04 as there it is the default init system. We use db_systemd for it, which is not available on Debian 7 (only in backports).
I'm closing this issue therefore.

Related Changesets

bareos: master 86a49824

2015-06-05 21:04

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
Debian: add systemd support

Debian >= 8 and Ubuntu >= 15.04 do use systemd as primary init system.
This change let Bareos use the already existing systemd service files.
Limitations:
- The systemd service files have the same name as the package
(e.g. bareos-filedaemon.service instead of bareos-fd.service).
However, the service files contain aliases to the short name
and are therefore also usable with the short name.
- During compile, the package dh-systemd must be installed.
However, it is not added in the control/dsc files,
as it is not available on older platforms.

Other changes:
- use ${datarootdir}/dbconfig-common/
instead of /usr/share/dbconfig-common/
to able able to manual build and install it as normal user.
Affected Issues
0000432
mod - autoconf/configure.in Diff File
add - debian/bareos-director.service.in Diff File
add - debian/bareos-filedaemon.service.in Diff File
add - debian/bareos-storage.service.in Diff File
mod - debian/control.in Diff File
mod - debian/rules Diff File
mod - platforms/debian/Makefile.in Diff File
mod - platforms/systemd/bareos-dir.service.in Diff File
mod - platforms/systemd/bareos-fd.service.in Diff File
mod - platforms/systemd/bareos-sd.service.in Diff File

Issue History

Date Modified Username Field Change
2015-03-05 20:31 tylla New Issue
2015-03-05 21:44 joergs Assigned To => joergs
2015-03-05 21:44 joergs Status new => assigned
2015-06-17 12:06 joergs Changeset attached => bareos master 86a49824
2015-06-17 12:11 joergs Note Added: 0001770
2015-06-17 12:11 joergs Status assigned => resolved
2015-06-17 12:11 joergs Fixed in Version => 14.4.0
2015-06-17 12:11 joergs Resolution open => fixed
2015-06-17 12:11 joergs Assigned To joergs =>
2015-06-17 12:11 joergs Status resolved => closed