
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: I45757fcd52426369b42916ad2195d2fe2f6a4c15
20 lines
705 B
Bash
20 lines
705 B
Bash
#! /bin/sh
|
|
### BEGIN INIT INFO
|
|
# Provides: neutron-server
|
|
# Required-Start: $remote_fs $syslog
|
|
# Required-Stop: $remote_fs $syslog
|
|
# Should-Start: mysql postgresql rabbitmq-server keystone
|
|
# Should-Stop: mysql postgresql rabbitmq-server keystone
|
|
# Default-Start: 2 3 4 5
|
|
# Default-Stop: 0 1 6
|
|
# Short-Description: neutron-server
|
|
# Description: Provides the Neutron networking service
|
|
### END INIT INFO
|
|
|
|
DESC="OpenStack Neutron Server"
|
|
PROJECT_NAME=neutron
|
|
NAME=${PROJECT_NAME}-server
|
|
DAEMON={{ daemon_path }}
|
|
[ -r /etc/default/neutron-server ] && . /etc/default/neutron-server
|
|
[ -n "$NEUTRON_PLUGIN_CONFIG" ] && DAEMON_ARGS="--config-file=$NEUTRON_PLUGIN_CONFIG"
|