Subject: update init script
Description: use variable for network
Author: Olivier Sallou
Last-Updated: 2014-03-05
Forwarded: no
--- a/etc/init.d/vmcontext
+++ b/etc/init.d/vmcontext
@@ -21,15 +21,17 @@
 
 ### BEGIN INIT INFO
 # Provides:          vmcontext
-# Required-Start:    $all
+# Required-Start:    $remote_fs $syslog $network
 # Required-Stop:
-# Should-Start:      networking
-# Should-Stop:       networking
+# Should-Start:      $network
+# Should-Stop:       $network
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: OpenNebula contextualization script
 ### END INIT INFO
 
+. /lib/lsb/init-functions
+
 function export_rc_vars
 {
     if [ -f $1 ] ; then
