*** empty log message ***
authorSapan Bhatia <sapanb@cs.princeton.edu>
Fri, 15 Jun 2007 15:14:39 +0000 (15:14 +0000)
committerSapan Bhatia <sapanb@cs.princeton.edu>
Fri, 15 Jun 2007 15:14:39 +0000 (15:14 +0000)
Makefile
fifowatcher.ml
vsys
vsys-initscript [new file with mode: 0755]
vsys.spec [new file with mode: 0644]

index 46610dd..96937bb 100644 (file)
--- 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
index 803ee5e..51b8f99 100644 (file)
@@ -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 (executable)
Binary files a/vsys and b/vsys differ
diff --git a/vsys-initscript b/vsys-initscript
new file mode 100755 (executable)
index 0000000..5ade750
--- /dev/null
@@ -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 (file)
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