aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder/cinder-backup.service
blob: 1ae030c17f1cff4807d67243e2a682af910e0316 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description=OpenStack Cinder Backup
After=postgresql.service keystone.service rabbitmq-server.service ntp.service

[Service]
User=%USER%
Group=%GROUP%
Type=simple
WorkingDirectory=%LOCALSTATEDIR%/lib/cinder
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/log/cinder %LOCALSTATEDIR%/lib/cinder
ExecStartPre=/bin/chown cinder:cinder %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/lib/cinder
ExecStartPre=/bin/chown cinder:adm %LOCALSTATEDIR%/log/cinder
ExecStart=/usr/bin/cinder-backup --config-file=%SYSCONFDIR%/cinder/cinder.conf
Restart=on-failure
LimitNOFILE=65535
TimeoutStopSec=15

[Install]
WantedBy=multi-user.target