summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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