Permalink
Browse files

making virga easier to deploy

  • Loading branch information...
1 parent f026be0 commit 53a2d6e225ac305079278371986017715a5cec0f BuzzTroll committed Aug 20, 2010
Showing with 29 additions and 0 deletions.
  1. +15 −0 virga/etc/virga.xinetd
  2. +14 −0 virga/install.sh
View
@@ -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
+}
View
@@ -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.