| 1 |
[Unit] |
| 2 |
Description=Backup and Recovery Manager for PostgreSQL - cron tasks |
| 3 |
Documentation=man:barman(1) |
| 4 |
After=network.target |
| 5 |
|
| 6 |
[Service] |
| 7 |
Type=oneshot |
| 8 |
User=barman |
| 9 |
ExecStart=/usr/bin/barman -q cron |
| 10 |
# Normally cron supervises each streaming server's WAL receiver through its own |
| 11 |
# barman-receive-wal@<server>.service unit (its own cgroup, unaffected by this |
| 12 |
# oneshot exiting). But when the unit cannot be started (e.g. polkit is not |
| 13 |
# installed, so the barman user is not authorised) cron falls back to forking |
| 14 |
# the receiver as a child of this service. KillMode=process stops systemd from |
| 15 |
# killing those forked receivers when this oneshot exits (see Debian #1138696). |
| 16 |
KillMode=process |