File: bacula-dir.service.in

package info (click to toggle)
bacula 7.4.4+dfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 17,084 kB
  • sloc: ansic: 120,922; sh: 22,583; cpp: 15,341; perl: 3,224; makefile: 2,819; sql: 315; awk: 128; xml: 57; python: 43; sed: 16
file content (38 lines) | stat: -rw-r--r-- 1,079 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Systemd Bacula service file
#
# Copyright (C) 2000-2016 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
# /lib/systemd/system/bacula-dir.service
#
# Description:
#    Used to start/stop/reload the bacula director daemon service (bacula-dir)
#
#    enable : systemctl enable bacula-dir
#    start : systemctl start bacula-dir
#
#

# From http://www.freedesktop.org/software/systemd/man/systemd.unit.html
[Unit]
Description=Bacula Director Daemon service
Requires=network.target
After=network.target postgresql.service mysql.service
RequiresMountsFor=@working_dir@ @sysconfdir@ @sbindir@ @piddir@

# From http://www.freedesktop.org/software/systemd/man/systemd.service.html
[Service]
Type=simple
User=bacula
Group=bacula
Environment="CONFIG=/etc/bacula/bacula-dir.conf"
EnvironmentFile=-/etc/default/bacula-dir
ExecStartPre=@sbindir@/bacula-dir -t -c $CONFIG
ExecStart=@sbindir@/bacula-dir -f -c $CONFIG
ExecReload=@sbindir@/bacula-dir -t -c $CONFIG
ExecReload=/bin/kill -HUP $MAINPID
SuccessExitStatus=15
StandardError=syslog

[Install]
WantedBy=multi-user.target