From 461056cda495f9105759baba66cacfcd0e2cafc7 Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Wed, 4 Mar 2015 17:02:18 +0000 Subject: Add systemd unit for the storage nodes --- openstack/manifest | 1 + .../usr/lib/systemd/system/openstack-swift-storage.service | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 openstack/usr/lib/systemd/system/openstack-swift-storage.service 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 -- cgit v1.2.1