deb-networking-cisco/etc/init/cpnr-dhcp-relay.conf

41 lines
1.3 KiB
Plaintext

# Copyright 2016 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
#
description "CPNR DHCP Relay Conf"
start on runlevel [2345]
stop on runlevel [!2345]
env DST="/usr/local/bin/"
pre-start script
logger -t cpnr-dhcp-relay.conf "Pre-Starting CPNR DHCP Relay Agent"
test -r $DST/cpnr-dhcp-relay-agent|| { stop; exit 0; }
logger -t cpnr-dhcp-relay.conf "Starting CPNR DHCP Relay Agent"
end script
pre-stop script
logger -t cpnr-dhcp-relay.conf "Stopping CPNR DHCP Relay Agent"
end script
script
logger -t cpnr-dhcp-relay.conf "Starting NOW CPNR DHCP Relay Agent"
exec $DST/cpnr-dhcp-relay-agent--config-file /etc/neutron/dhcp_agent.ini
--log-file /var/log/cpnr/cpnr-dhcp-relay-agent.log
end script