Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
making virga easier to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
BuzzTroll committed Sep 13, 2010
1 parent f026be0 commit 53a2d6e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
15 changes: 15 additions & 0 deletions virga/etc/virga.xinetd
@@ -0,0 +1,15 @@
# default: off
# description: An RFC 868 time server. This protocol provides a
# site-independent, machine readable date and time. The Time service sends back
# to the originating source the time in seconds since midnight on January first
# 1900.
# This is the tcp version.
service virga
{
disable = no
socket_type = stream
protocol = tcp
user = bresnaha
wait = no
server = @VIRGA_HOME@/bin/virga.sh
}
14 changes: 14 additions & 0 deletions virga/install.sh
@@ -0,0 +1,14 @@
#!/bin/bash

dir=`dirname $0`
cd $dir/..
pypath=`pwd`
if [ "X${PYTHONPATH}" == "X" ]; then
export PYTHONPATH=$pypath
else
export PYTHONPATH=$pypath:${PYTHONPATH}
fi
# so that we pick up the ini file
export VIRGA_HOME=$pypath

exec python ./pyvirga/request.py "${@}"

0 comments on commit 53a2d6e

Please sign in to comment.