[openstack-cinder] Add init script for backup service

Eric Harney eharney at fedoraproject.org
Mon Aug 26 21:45:22 UTC 2013


commit 65d14b2965a7dd3a6441d29a36d0569bf3d343cd
Author: Eric Harney <eharney at redhat.com>
Date:   Mon Aug 26 15:48:59 2013 -0400

    Add init script for backup service

 openstack-cinder-backup.service |   12 ++++++++++++
 openstack-cinder.spec           |    5 +++++
 2 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/openstack-cinder-backup.service b/openstack-cinder-backup.service
new file mode 100644
index 0000000..d113010
--- /dev/null
+++ b/openstack-cinder-backup.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=OpenStack Cinder Backup Server
+After=syslog.target network.target
+
+[Service]
+Type=simple
+User=cinder
+ExecStart=/usr/bin/cinder-backup --config-file /etc/cinder/cinder.conf --logfile /var/log/cinder/backup.log
+
+[Install]
+WantedBy=multi-user.target
+
diff --git a/openstack-cinder.spec b/openstack-cinder.spec
index b8596b9..d38e8ba 100644
--- a/openstack-cinder.spec
+++ b/openstack-cinder.spec
@@ -16,6 +16,7 @@ Source3:          cinder-tgt.conf
 Source10:         openstack-cinder-api.service
 Source11:         openstack-cinder-scheduler.service
 Source12:         openstack-cinder-volume.service
+Source13:         openstack-cinder-backup.service
 
 Source20:         cinder-sudoers
 
@@ -203,6 +204,7 @@ install -p -D -m 640 etc/cinder/policy.json %{buildroot}%{_sysconfdir}/cinder/po
 install -p -D -m 644 %{SOURCE10} %{buildroot}%{_unitdir}/openstack-cinder-api.service
 install -p -D -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/openstack-cinder-scheduler.service
 install -p -D -m 644 %{SOURCE12} %{buildroot}%{_unitdir}/openstack-cinder-volume.service
+install -p -D -m 644 %{SOURCE13} %{buildroot}%{_unitdir}/openstack-cinder-backup.service
 
 # Install sudoers
 install -p -D -m 440 %{SOURCE20} %{buildroot}%{_sysconfdir}/sudoers.d/cinder
@@ -289,6 +291,9 @@ fi
 %endif
 
 %changelog
+* Mon Aug 26 2013 Eric Harney <eharney at redhat.com> - 2013.2-0.6.b2
+- Add cinder-backup service init script
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2013.2-0.5.b2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list