[pkg-bacula-devel] Bug#624532: Bug#624532: bacula-fd: please include systemd service file

Luca Capello luca at pca.it
Thu Jun 7 15:33:44 UTC 2012


forwarded 624532 http://bugs.bacula.org/view.php?id=1886
tags 624532 + upstream
tags 624532 + pending
usertags 624532 + debian-packaging
thanks

Hi Michael!

I am sorry for the delay.

On Fri, 29 Apr 2011 14:02:15 +0200, Michael Stapelberg wrote:
> So, please integrate the attached two files (and contact upstream about also
> including it):
>  • bacula-fd.service should be placed at /lib/systemd/system/bacula-fd.service.

We are uploading a 5.2.6 package, which already includes systemd files
(commit:77aa213), so I decided to rather use these latter.  The diff:

--8<---------------cut here---------------start------------->8---
--- michael___bacula-fd.service
+++ platforms/systemd/bacula-fd.service.in
@@ -1,14 +1,29 @@
+# This file is part of package Bacula File Daemon
+#
+# Copyright (c) 2011 Free Software Foundation Europe e.V.
+# Bacula Community
+# Author: Bruno Friedmann
+# Description:
+#    Used to start the bacula file daemon service (bacula-fd)
+#    will be installed as /lib/systemd/system/bacula-fd.service
+#    enable : systemctl enable bacula-fd.service
+#       start : systemctl start bacula-fd.service
+#
+# Bacula File Daemon service
+#
 [Unit]
-Description=bacula-fd
-Requires=network.target
-After=network.target
+Description=Bacula File Daemon service
+Requires=var-run.mount nss-lookup.target network.target remote-fs.target syslog.target time-sync.target
+After=var-run.mount nss-lookup.target network.target remote-fs.target syslog.target time-sync.target
+# Wants=
+# Before=
+# Conflicts=

 [Service]
-ExecStart=/usr/sbin/bacula-fd -c /etc/bacula/bacula-fd.conf
 Type=forking
-IOSchedulingClass=idle
+PIDFile=@piddir@/bacula-fd. at fd_port@.pid
 StandardOutput=syslog
-Restart=always
+ExecStart=@sbindir@/bacula-fd -u @fd_user@ -g @fd_group@ -c @sysconfdir@/bacula-fd.conf

 [Install]
 WantedBy=multi-user.target
--8<---------------cut here---------------end--------------->8---

I am not a systemd expert, so if there is something that should be
fixed, I can act as a proxy to upstream, if needed.

>  • /etc/tmpfiles.d/bacula-fd.conf is responsible for creating /var/run/bacula

I guess that such a file should be installed in all packages wanting
/var/run/bacula (forwarded upstream) and given that bacula-fd, bacula-sd
and each bacula-director-$SQL package all depends on bacula-common, I
installed it there:

  <http://anonscm.debian.org/gitweb/?p=pkg-bacula/bacula.git;a=commitdiff;h=9aa2a35d89381f5dcf639a78ce33a2e0187c482d>

Testing packages are available at:

  <http://pkg-bacula.alioth.debian.org/tmp/>

Thx, bye,
Gismo / Luca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-bacula-devel/attachments/20120607/95af6caf/attachment.pgp>


More information about the pkg-bacula-devel mailing list