From: Sapan Bhatia <sapanb@cs.princeton.edu>
Date: Fri, 15 Jun 2007 15:14:39 +0000 (+0000)
Subject: *** empty log message ***
X-Git-Tag: vsys-0.7-19~31
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6e043af83191e7ca7b456c999e5c3abd67530fbb;p=vsys.git

*** empty log message ***
---

diff --git a/Makefile b/Makefile
index 46610dd..96937bb 100644
--- a/Makefile
+++ b/Makefile
@@ -31,6 +31,8 @@ vsys.b: inotify.cma inotify.cmi globals.cmo fdwatcher.cmo dirwatcher.cmo fifowat
 
 install: vsys
 	cp vsys /usr/bin
+	cp vsys.b /usr/bin
+	cp vsys-initscript /etc/init.d/vsys 
 
 dep:
 	ocamldep *.ml > .dep
diff --git a/fifowatcher.ml b/fifowatcher.ml
index 803ee5e..51b8f99 100644
--- a/fifowatcher.ml
+++ b/fifowatcher.ml
@@ -70,7 +70,7 @@ and receive_fifo_event eventdescriptor outdescriptor =
       | Some(str)->
           (
             try openfile str [O_WRONLY;O_NONBLOCK] 0o777 with
-                _->printf "Problemo:%s\n" str;flush Pervasives.stdout;stdout
+                _->printf "Output pipe not open, using stdout in place of %s\n" str;flush Pervasives.stdout;stdout
           )
       | None-> printf "Bug, nameless pipe\n";raise Bug
   in
diff --git a/vsys b/vsys
index 9a3e8c6..44db598 100755
Binary files a/vsys and b/vsys differ
diff --git a/vsys-initscript b/vsys-initscript
new file mode 100755
index 0000000..5ade750
--- /dev/null
+++ b/vsys-initscript
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+case "$1" in
+    start|restart|reload|update)
+	;;
+    stop|status)
+	exit 0
+	;;
+    *)
+	echo $"Usage: $0 {start|stop|restart|status}"
+	exit 1
+	;;
+esac
+
+# Source function library.
+. /etc/rc.d/init.d/functions
diff --git a/vsys.spec b/vsys.spec
new file mode 100644
index 0000000..95fc555
--- /dev/null
+++ b/vsys.spec
@@ -0,0 +1,58 @@
+#
+# Vsys filesystem
+#
+# RPM spec file
+#
+# $Id: vsys.spec,v 1.40 2007/04/03 02:08:55 mef Exp $
+#
+
+%define name vsys
+%define version 0.4
+%define release 2%{?pldistro:.%{pldistro}}%{?date:.%{date}}
+
+Vendor: PlanetLab
+Packager: PlanetLab Central <support@planet-lab.org>
+Distribution: PlanetLab 4.0
+URL: http://cvs.planet-lab.org/cvs/vsys
+
+Summary: Vsys filesystem 
+Name: %{name}
+Version: %{version}
+Release: %{release}
+License: GPL
+Group: System Environment/Kernel
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+#Requires: 
+
+Source0: vsys-%{version}.tar.gz
+
+%description
+vsys is a file-system-based interface that lets slices on PlanetLab safely
+invoke services installed by the PlanetLab administration. Slices invoke and
+interact with these services through fifo pipes. Services can be added and
+removed dynamically.
+
+%prep
+%setup
+
+%build
+rm -rf $RPM_BUILD_ROOT
+make
+
+%install
+make install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+/usr/bin/vsys
+/etc/init.d/vsys
+
+%post
+chkconfig --add vsys
+chkconfig vsys on
+
+%postun
+
+%changelog