deb-networking-cisco/etc/saf/init/fabric-enabler-agent.conf

43 lines
1.3 KiB
Plaintext

# Copyright 2015 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 "Fabric Enabler Agent Conf"
start on runlevel [2345]
stop on runlevel [!2345]
env DST="/usr/local/bin/"
pre-start script
logger -t fabric-enabler-agent.conf "Pre-Starting Fabric Enabler Agent"
test -r /etc/saf/enabler_conf.ini || { stop; exit 0; }
test -r $DST/fabric-enabler-agent || { stop; exit 0; }
logger -t fabric-enabler-agent.conf "Starting Fabric Enabler Agent"
end script
pre-stop script
logger -t fabric-enabler-agent.conf "Stopping Fabric Enabler Agent"
end script
script
logger -t fabric-enabler-agent.conf "Starting NOW 1 Fabric Enabler Agent"
exec $DST/fabric-enabler-agent --config-file /etc/saf/enabler_conf.ini
end script
#respawn
#respawn limit 10 5