48 lines
1.5 KiB
Plaintext
48 lines
1.5 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 Server Conf"
|
|
|
|
start on runlevel [2345]
|
|
stop on runlevel [!2345]
|
|
|
|
env DST="/usr/local/bin/"
|
|
#setuid localadmin
|
|
#setgid localadmin
|
|
#chdir /var/run`
|
|
|
|
pre-start script
|
|
logger -t fabric-enabler-server "Pre-Start Fabric Enabler Server Start"
|
|
test -r /etc/saf/enabler_conf.ini || { stop; exit 0; }
|
|
test -r $DST/fabric-enabler-server || { stop; exit 0; }
|
|
#mkdir -p /var/run/localadmin
|
|
#chown localadmin:root /var/run/localadmin
|
|
logger -t fabric-enabler-server "Pre-Starting Fabric Enabler Server Complete"
|
|
end script
|
|
|
|
pre-stop script
|
|
logger -t fabric-enabler-server "Stopping Fabric Enabler Server"
|
|
end script
|
|
|
|
script
|
|
logger -t fabric-enabler-server "Starting 1 Fabric Enabler Server"
|
|
exec $DST/fabric-enabler-server --config-file /etc/saf/enabler_conf.ini
|
|
end script
|
|
|
|
#respawn
|
|
#respawn limit 10 5
|