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 b7b2d4db63e99b522001b78764721c43776dd4d4..b116f6821b4011e323b827e03ca741065ba6236e 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 ad3547b10a876673abda0e34716d24fbd179bdde..cf01fcfc01c795b8c9a13d278ef7d43a52bf6d33 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 3286f9b8fbb8778f9927155cba7790950b2069c7..6f2c0487e51f5823c7b7032a8d7235d19d2ab87a 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 43a320475028de7f23ddab5182aa46debdd323c4..97e9b893694d10511c1eecc7b87ef47269917cab 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 5e54185822de08576d05a59ba41be0672426edd5..be547b114e735d6148a46d7f41ca376af3dc5cc4 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 cfe49be8f5bd76dd93decde3fc6a2f1ac0ebc6eb..06d8fcccb479b8f61188648e6fe11cd1b7dfe028 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