21b20ccf14
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: I784e6b9908222995c56c9f3c06cc54f0254d4761
23 lines
803 B
Bash
23 lines
803 B
Bash
#!/bin/sh
|
|
### BEGIN INIT INFO
|
|
# Provides: neutron-sriov-agent
|
|
# Required-Start: $network $local_fs $remote_fs $syslog
|
|
# Required-Stop: $remote_fs
|
|
# 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 SRIOV Agent
|
|
# Description: SRIOV agent for OpenStack Neutron
|
|
### END INIT INFO
|
|
|
|
# Authors: James Page <james.page@ubuntu.com>
|
|
|
|
DESC="OpenStack Neutron SRIOV Plugin Agent"
|
|
PROJECT_NAME=neutron
|
|
NAME=${PROJECT_NAME}-sriov-agent
|
|
DAEMON={{ daemon_path }}
|
|
# --config-file=/etc/neutron/neutron.conf will be appended
|
|
# to DAEMON_ARGS later by openstack-pkg-tools
|
|
DAEMON_ARGS="--config-file=/etc/neutron/plugins/ml2/sriov_agent.ini"
|