~openstack-charmers-next/charms/xenial/nova-cloud-controller/trunk

« back to all changes in this revision

Viewing changes to templates/git/nova-spiceproxy.init.in.template

  • Committer: James Page
  • Author(s): Corey Bryant
  • Date: 2016-07-07 10:05:45 UTC
  • Revision ID: james.page@ubuntu.com-20160707100545-01h2zi322q4e46z5
Add systemd init support for deploy from source

systemd is used instead of upstart by default since Ubuntu 15.10
(Wily).  This adds systemd init file support for nova services
that are deployed from source.

Change-Id: Ie71aed8c1f28204d5fbd735d51cea6d77977a637

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh
 
2
### BEGIN INIT INFO
 
3
# Provides:          nova-spiceproxy
 
4
# Required-Start:    $network $local_fs $remote_fs $syslog
 
5
# Required-Stop:     $remote_fs
 
6
# Should-Start:      nova-consoleauth
 
7
# Should-Stop:       nova-consoleauth
 
8
# Default-Start:     2 3 4 5
 
9
# Default-Stop:      0 1 6
 
10
# Short-Description: Nova Spice HTML5 Proxy
 
11
# Description:       Nova Spice HTML5 Proxy
 
12
### END INIT INFO
 
13
 
 
14
# Author: Thomas Goirand <zigo@debian.org>
 
15
 
 
16
# PATH should only include /usr/* if it runs after the mountnfs.sh script
 
17
PATH=/sbin:/usr/sbin:/bin:/usr/bin
 
18
DESC="OpenStack Compute Spice HTML5 Proxy"
 
19
PROJECT_NAME=nova
 
20
NAME=${PROJECT_NAME}-spiceproxy
 
21
DAEMON={{ daemon_path }}