charm-neutron-gateway/templates/git/neutron-l3-agent.init.in.template
Corey Bryant 21b20ccf14 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: I784e6b9908222995c56c9f3c06cc54f0254d4761
2016-07-07 11:00:30 +01:00

26 lines
1019 B
Bash

#!/bin/sh
### BEGIN INIT INFO
# Provides: neutron-l3-agent
# Required-Start: $network $local_fs $remote_fs $syslog
# Required-Stop: $remote_fs
# Should-Start: mysql postgresql rabbitmq-server keystone openvswitch-switch neutron-ovs-cleanup
# Should-Stop: mysql postgresql rabbitmq-server keystone openvswitch-switch
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Neutron L3 agent
# Description: Provide L3 agent for neutron
### END INIT INFO
# Authors: Mehdi Abaakouk <sileht@sileht.net>
# 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 Neutron L3 agent"
PROJECT_NAME=neutron
NAME=${PROJECT_NAME}-l3-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/l3_agent.ini --config-file=/etc/neutron/fwaas_driver.ini"