Setting tag myplc-4.3-53
[myplc.git] / plc.init
index 309523e..2e9e825 100755 (executable)
--- a/plc.init
+++ b/plc.init
@@ -7,6 +7,7 @@
 # description: Manages all PLC services on this machine
 #
 # $Id$
+# $URL$
 #
 
 # Source function library and configuration
@@ -80,6 +81,9 @@ reload ()
     if [ -n "$force" -o /etc/planetlab/plc_config.xml -nt /etc/planetlab/plc_config.py ] ; then
        plc-config --python >/etc/planetlab/plc_config.py
     fi
+    if [ -n "$force" -o /etc/planetlab/plc_config.xml -nt /etc/planetlab/plc_config.rb ] ; then
+       plc-config --ruby >/etc/planetlab/plc_config.rb
+    fi
     if [ -n "$force" -o /etc/planetlab/plc_config.xml -nt /etc/planetlab/php/plc_config.php ] ; then
        mkdir -p /etc/planetlab/php
        plc-config --php >/etc/planetlab/php/plc_config.php
@@ -133,7 +137,7 @@ fi
 # Get command
 shift $(($OPTIND - 1))
 if [ -z "$1" ] ; then
-    usage
+    usage >&3
 fi
 command=$1