Matteo Scandolo | aca8665 | 2017-08-08 13:05:27 -0700 | [diff] [blame] | 1 | |
| 2 | # Copyright 2017-present Open Networking Foundation |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | |
| 16 | |
AyumuUeha | 76a01bc | 2017-05-18 13:34:13 +0900 | [diff] [blame] | 17 | #!/bin/bash |
| 18 | #************************************************************/ |
| 19 | #** File: vcpe_proxy_ap_mgmt_start.sh */ |
| 20 | #** Contents: Contains shell script to start VCPE */ |
| 21 | #** PPPoE Management */ |
| 22 | #************************************************************/ |
| 23 | echo "vcpe_proxy_ap_mgmt_start.sh: BEGIN" >/tmp/pppoeMgmt.log |
| 24 | date >>/tmp/pppoeMgmt.log |
| 25 | |
| 26 | cd /usr/local/lib/node_modules/ |
| 27 | # TODO: |
| 28 | # Need to fix this hardcoded filename |
| 29 | ### Replace apmgmt_js.tar by the variable $APMGMT_TAR_FILE |
| 30 | tar -xvf apmgmt_js.tar |
| 31 | |
| 32 | if [[ "$1" == "ipv4" ]]; then |
| 33 | cp checkPNI_ipv4.js checkPNI.js |
| 34 | cp httpServer_ipv4.js httpServer.js |
| 35 | fi |
| 36 | |
| 37 | nodejs httpServer.js >> /tmp/httpServer.log 2>&1 & |
| 38 | nodejs cController.js >> /tmp/cController.log 2>&1 & |
| 39 | |