debian: Add $remote_fs to Required-Start/-Stop field in init scripts
authorJustin Pettit <jpettit@nicira.com>
Thu, 1 Apr 2010 00:42:50 +0000 (17:42 -0700)
committerJustin Pettit <jpettit@nicira.com>
Thu, 1 Apr 2010 06:14:04 +0000 (23:14 -0700)
Init scripts that depend on items in /usr must have $remote_fs defined
in their Required-Start and Required-Stop fields.  This will ensure that
/usr is mounted before a start or stop call is made.

Found by Lintian.

debian/corekeeper.init
debian/openvswitch-controller.init
debian/openvswitch-monitor.init
debian/openvswitch-switch.init
debian/openvswitch-switchui.init
debian/openvswitch-wdt.init

index b7b2d4d..b116f68 100755 (executable)
@@ -25,8 +25,8 @@
 #
 ### BEGIN INIT INFO
 # Provides:          corekeeper
-# Required-Start:
-# Required-Stop:     
+# Required-Start:    $remote_fs
+# Required-Stop:     $remote_fs
 # Should-Start:      $syslog
 # Should-Stop:       
 # Default-Start:     2 3 4 5
index ad3547b..cf01fcf 100755 (executable)
@@ -19,8 +19,8 @@
 #
 ### BEGIN INIT INFO
 # Provides:          openvswitch-controller
-# Required-Start:    $network $local_fs
-# Required-Stop:     
+# Required-Start:    $network $local_fs $remote_fs
+# Required-Stop:     $remote_fs
 # Should-Start:      $named
 # Should-Stop:       
 # Default-Start:     2 3 4 5
index 3286f9b..6f2c048 100755 (executable)
@@ -24,8 +24,8 @@
 #
 ### BEGIN INIT INFO
 # Provides:          openvswitch-monitor
-# Required-Start:    $network $local_fs
-# Required-Stop:     
+# Required-Start:    $network $local_fs $remote_fs
+# Required-Stop:     $remote_fs
 # Should-Start:      $named $syslog openvswitch-switch
 # Should-Stop:       
 # Default-Start:     2 3 4 5
index 43a3204..97e9b89 100755 (executable)
@@ -12,7 +12,7 @@
 ### BEGIN INIT INFO
 # Provides:          openvswitch-switch
 # Required-Start:    $network $named $remote_fs $syslog
-# Required-Stop:
+# Required-Stop:     $remote_fs
 # Default-Start:     2 3 4 5
 # Default-Stop:      0 1 6
 # Short-Description: Open vSwitch switch
index 5e54185..be547b1 100755 (executable)
@@ -24,8 +24,8 @@
 #
 ### BEGIN INIT INFO
 # Provides:          openvswitch-switchui
-# Required-Start:    $network $local_fs
-# Required-Stop:     
+# Required-Start:    $network $local_fs $remote_fs
+# Required-Stop:     $remote_fs
 # Should-Start:      $named $syslog openvswitch-switch
 # Should-Stop:       
 # Default-Start:     2 3 4 5
index cfe49be..06d8fcc 100755 (executable)
@@ -24,8 +24,8 @@
 #
 ### BEGIN INIT INFO
 # Provides:          openvswitch-wdt
-# Required-Start:    $network $local_fs
-# Required-Stop:     
+# Required-Start:    $network $local_fs $remote_fs
+# Required-Stop:     $remote_fs
 # Should-Start:      $named $syslog openvswitch-switch
 # Should-Stop:       
 # Default-Start:     2 3 4 5