blob: 242fc3efab29732810893e0fe544763766d05715 [file] [log] [blame]
AyumuUeha76a01bc2017-05-18 13:34:13 +09001#!/bin/bash
2#************************************************************/
3#** File: vcpe_proxy_ap_mgmt_start.sh */
4#** Contents: Contains shell script to start VCPE */
5#** PPPoE Management */
6#************************************************************/
7echo "vcpe_proxy_ap_mgmt_start.sh: BEGIN" >/tmp/pppoeMgmt.log
8date >>/tmp/pppoeMgmt.log
9
10cd /usr/local/lib/node_modules/
11# TODO:
12# Need to fix this hardcoded filename
13### Replace apmgmt_js.tar by the variable $APMGMT_TAR_FILE
14tar -xvf apmgmt_js.tar
15
16if [[ "$1" == "ipv4" ]]; then
17 cp checkPNI_ipv4.js checkPNI.js
18 cp httpServer_ipv4.js httpServer.js
19fi
20
21nodejs httpServer.js >> /tmp/httpServer.log 2>&1 &
22nodejs cController.js >> /tmp/cController.log 2>&1 &
23