oops, the previous (unintended) check in was wrong and did not work
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 20 Apr 2006 09:01:00 +0000 (09:01 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 20 Apr 2006 09:01:00 +0000 (09:01 +0000)
the 'start' function was undefined and so the system never took off
The usage line is reviewed as well

host.init

index 77cd087..8fac379 100755 (executable)
--- a/host.init
+++ b/host.init
@@ -6,7 +6,7 @@
 #
 # description: Manages all PLC services on this machine
 #
-# $Id: host.init,v 1.4 2006/04/12 19:30:47 mlhuang Exp $
+# $Id: host.init,v 1.5 2006/04/18 15:39:34 thierry Exp $
 #
 
 PATH=/sbin:/bin:/usr/bin:/usr/sbin
@@ -60,6 +60,12 @@ mount_plc ()
     [ $ERRORS -eq 0 ] && success $"PLC unmount" || failure $"PLC unmount"      
     echo
 
+}
+
+start ()
+{
+    mount_plc 
+
     chroot $PLC_ROOT /sbin/service plc $PLC_OPTIONS start $*
     check
 }
@@ -127,7 +133,7 @@ case "$command" in
        ;;
   
     *)
-       echo "Usage: $0 {start|stop|restart}"
+       echo "Usage: $0 {start|stop|restart|mount|umount|mountstatus}"
        RETVAL=1
        ;;
 esac