File: nova-consoleproxy.nova-spicehtml5proxy.init.in

package info (click to toggle)
nova 2%3A13.1.0-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 31,120 kB
  • sloc: python: 301,406; sh: 1,298; xml: 1,184; makefile: 129; sql: 43
file content (30 lines) | stat: -rw-r--r-- 889 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/sh
### BEGIN INIT INFO
# Provides:          nova-spicehtml5proxy
# Required-Start:    $network $local_fs $remote_fs $syslog
# Required-Stop:     $remote_fs
# Should-Start:      nova-consoleauth
# Should-Stop:       nova-consoleauth
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Nova Spice HTML5 Proxy
# Description:       Nova Spice HTML5 Proxy
### END INIT INFO

# Author: Thomas Goirand <zigo@debian.org>

# PATH should only include /usr/* if it runs after the mountnfs.sh script
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="OpenStack Compute Spice HTML5 Proxy"
PROJECT_NAME=nova
NAME=${PROJECT_NAME}-spicehtml5proxy

# Exit if the default file not present, or not set to this daemon
if [ -r /etc/default/nova-consoleproxy ] ; then
	. /etc/default/nova-consoleproxy
else
	exit 0
fi
if ! [ "${NOVA_CONSOLE_PROXY_TYPE}" = "spicehtml5" ] ; then
	exit 0
fi