~brightbox/brightbox/exabgp-1.3.3

« back to all changes in this revision

Viewing changes to bin/bgpd

  • Committer: thomas_mangin
  • Date: 2010-02-14 19:50:12 UTC
  • Revision ID: hg-v1:e727bb624cef68a22b12923694b77c5a26aed0b6
adding bgpd as a stand alone program

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
dirname=`dirname $0`
 
4
 
 
5
if [[ $dirname == /* ]]; then
 
6
        path=$dirname/..
 
7
else
 
8
        cd `pwd`/$dirname/.. > /dev/null
 
9
        path=`pwd`
 
10
        cd - > /dev/null
 
11
fi
 
12
 
 
13
export PYTHONPATH=$path/lib
 
14
export ETC=$path/etc/bgpd
 
15
 
 
16
python $path/daemon/bgpd $*