diff options
Diffstat (limited to 'meta-openstack-controller-test-config/recipes-devtools/python/python-cinder/cinder-test-config.init')
-rw-r--r-- | meta-openstack-controller-test-config/recipes-devtools/python/python-cinder/cinder-test-config.init | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-openstack-controller-test-config/recipes-devtools/python/python-cinder/cinder-test-config.init b/meta-openstack-controller-test-config/recipes-devtools/python/python-cinder/cinder-test-config.init new file mode 100644 index 0000000..1c6936f --- /dev/null +++ b/meta-openstack-controller-test-config/recipes-devtools/python/python-cinder/cinder-test-config.init | |||
@@ -0,0 +1,34 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | ### BEGIN INIT INFO | ||
4 | # Provides: | ||
5 | # Required-Start: $remote_fs $network $syslog | ||
6 | # Required-Stop: $remote_fs $syslog | ||
7 | # Default-Start: 2 3 4 5 | ||
8 | # Default-Stop: 0 1 6 | ||
9 | # Short-Description: Cinder Test Config | ||
10 | # Description: OpenStack Cinder Test Config | ||
11 | ### END INIT INFO | ||
12 | |||
13 | |||
14 | start() | ||
15 | { | ||
16 | sleep 2 | ||
17 | source /etc/nova/openrc | ||
18 | /etc/cinder/add-cinder-volume-types.sh > /dev/null 2>&1 | ||
19 | } | ||
20 | |||
21 | case "$1" in | ||
22 | start) | ||
23 | start | ||
24 | ;; | ||
25 | stop|force-reload|restart|reload|status) | ||
26 | echo "WARNING: command $1 is not supported" | ||
27 | ;; | ||
28 | *) | ||
29 | echo "Usage: $0 {start|stop|force-reload|restart|reload|status}" | ||
30 | exit 1 | ||
31 | ;; | ||
32 | esac | ||
33 | |||
34 | exit 0 | ||