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

package info (click to toggle)
nova 2%3A18.1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 49,532 kB
  • sloc: python: 383,759; pascal: 1,610; xml: 1,184; sh: 917; makefile: 140; sql: 43
file content (35 lines) | stat: -rw-r--r-- 1,106 bytes parent folder | download | duplicates (3)
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
31
32
33
34
35
#!/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>
DESC="OpenStack Nova SPICE HTML5 Proxy (nova-spicehtml5proxy)"
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
	# This is to prevent pkgos-gen-systemd-unit to exit
	if [ -z "${INIT_TEMPLATE}" ] ; then
		exit 0
	fi
fi

# If SERVICE_FILE is set, we're generating the .service file, and we don't want to exit
if ! [ "${NOVA_CONSOLE_PROXY_TYPE}" = "spicehtml5" ] && [ -z "${SERVICE_FILE}" ] ; then
	# This is to prevent pkgos-gen-systemd-unit to exit
	if [ -z "${INIT_TEMPLATE}" ] ; then
		exit 0
	fi
fi