summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-03-04 17:02:18 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-03-04 17:03:54 +0000
commit461056cda495f9105759baba66cacfcd0e2cafc7 (patch)
tree08b7a777075180e2fcb4f93d3c20ef4111ce9e9e
parent53df1c2d5aee445f6f557599ac0ba8608eafec45 (diff)
downloaddefinitions-461056cda495f9105759baba66cacfcd0e2cafc7.tar.gz
Add systemd unit for the storage nodes
-rw-r--r--openstack/manifest1
-rw-r--r--openstack/usr/lib/systemd/system/openstack-swift-storage.service13
2 files changed, 14 insertions, 0 deletions
diff --git a/openstack/manifest b/openstack/manifest
index f375a4ce..78067bb7 100644
--- a/openstack/manifest
+++ b/openstack/manifest
@@ -171,3 +171,4 @@
0100644 0 0 /etc/systemd/system/openstack-swift-storage-setup.service
0100644 0 0 /usr/share/openstack/hosts
0100644 0 0 /usr/lib/systemd/system/openstack-swift-proxy.service
+0100644 0 0 /usr/lib/systemd/system/openstack-swift-storage.service
diff --git a/openstack/usr/lib/systemd/system/openstack-swift-storage.service b/openstack/usr/lib/systemd/system/openstack-swift-storage.service
new file mode 100644
index 00000000..291b8e5b
--- /dev/null
+++ b/openstack/usr/lib/systemd/system/openstack-swift-storage.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=OpenStack Swift Storage
+After=syslog.target network.target openstack-keystone.service
+
+[Service]
+Type=simple
+Restart=on-failure
+User=swift
+ExecStart=/usr/bin/swift-init all start
+ExecStop=/usr/bin/swift-init all stop
+
+[Install]
+WantedBy=multi-user.target