Add legacy init script for Ubuntu

For users who are using Ubuntu 14.04, systemd is not supported.
This patch add the sample init script for Ubuntu 14.04.

Change-Id: Icf2a1a85cd0c8eccb291dd05f43c0d6150665df3
This commit is contained in:
Hongbin Lu 2018-07-15 18:28:20 +00:00
parent e370dd0c61
commit ebd57ddf4c
4 changed files with 77 additions and 0 deletions

View File

@ -0,0 +1,41 @@
===================================
Legacy Init Script for Ubuntu 14.04
===================================
#. Clone the Zun repository:
.. code-block:: console
$ git clone https://git.openstack.org/openstack/zun.git
#. Enable and start zun-api:
.. code-block:: console
# cp zun/contrib/legacy-ubuntu-init/etc/init/zun-api.conf \
/etc/init/zun-api.conf
# start zun-api
#. Enable and start zun-wsproxy:
.. code-block:: console
# cp zun/contrib/legacy-ubuntu-init/etc/init/zun-wsproxy.conf \
/etc/init/zun-wsproxy.conf
# start zun-wsproxy
#. Enable and start zun-compute:
.. code-block:: console
# cp zun/contrib/legacy-ubuntu-init/etc/init/zun-compute.conf \
/etc/init/zun-compute.conf
# start zun-compute
#. Verify that zun services are running:
.. code-block:: console
# status zun-api
# status zun-wsproxy
# status zun-compute

View File

@ -0,0 +1,12 @@
description "OpenStack Container Service API"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
exec start-stop-daemon --start --chuid zun \
--chdir /var/lib/zun \
--name zun-api \
--exec /usr/local/bin/zun-api -- \
--config-file=/etc/zun/zun.conf

View File

@ -0,0 +1,12 @@
description "OpenStack Container Service Compute Agent"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
exec start-stop-daemon --start --chuid zun \
--chdir /var/lib/zun \
--name zun-compute \
--exec /usr/local/bin/zun-compute -- \
--config-file=/etc/zun/zun.conf

View File

@ -0,0 +1,12 @@
description "OpenStack Container Service Websocket Proxy"
start on runlevel [2345]
stop on runlevel [!2345]
respawn
exec start-stop-daemon --start --chuid zun \
--chdir /var/lib/zun \
--name zun-wsproxy \
--exec /usr/local/bin/zun-wsproxy -- \
--config-file=/etc/zun/zun.conf