summaryrefslogtreecommitdiff
path: root/openstack/etc/systemd/system/openstack-swift-controller-setup.service
diff options
context:
space:
mode:
authorRichard Ipsum <richard.ipsum@codethink.co.uk>2015-03-02 15:50:59 +0000
committerRichard Ipsum <richard.ipsum@codethink.co.uk>2015-03-02 15:50:59 +0000
commit9801084b32e8fe4d27a14403553fc61da1e17656 (patch)
treee398d9f740f6f80d5c50854900da21edf007daec /openstack/etc/systemd/system/openstack-swift-controller-setup.service
parent60948e9105680167c0c2004e5e70e5fa7f2592a6 (diff)
downloaddefinitions-9801084b32e8fe4d27a14403553fc61da1e17656.tar.gz
Make a unit for each type of node
swift-controller and swift-storage these units are enabled my specifying a flag in the cluster morph, SWIFT_CONTROLLER and SWIFT_STORAGE
Diffstat (limited to 'openstack/etc/systemd/system/openstack-swift-controller-setup.service')
-rw-r--r--openstack/etc/systemd/system/openstack-swift-controller-setup.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/openstack/etc/systemd/system/openstack-swift-controller-setup.service b/openstack/etc/systemd/system/openstack-swift-controller-setup.service
new file mode 100644
index 00000000..d43c43f2
--- /dev/null
+++ b/openstack/etc/systemd/system/openstack-swift-controller-setup.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Run openstack-swift-setup (once)
+After=local-fs.target postgres-server.service
+
+[Service]
+Type=oneshot
+ExecStart=/usr/share/openstack/openstack-swift-setup
+Restart=no
+
+[Install]
+WantedBy=multi-user.target