Statistics
| Branch: | Tag: | Revision:

root / debian / patches / fix-startup-with-old-config.patch @ 45b6a5b4

History | View | Annotate | Download (723 Bytes)

1
Description: The upgrade from Ganeti 1.2 makes the init script abort with
2
 ugly messages, so we edit the init script to exit early in this case.
3
Forwarded: no
4
Author: Iustin Pop <iusty@k1024.org>
5
Last-Update: 2009-12-04
6
--- a/doc/examples/ganeti.initd.in
7
+++ b/doc/examples/ganeti.initd.in
8
@@ -59,6 +59,16 @@
9
 }
10
 
11
 start_all() {
12
+    for fname in \
13
+        "@LOCALSTATEDIR@/lib/ganeti/ssconf_hypervisor"
14
+    do
15
+        if [ -f "$fname" ]; then
16
+            log_end_msg 0
17
+            log_warning_msg "Configuration not upgraded to 2.0, will not run."
18
+            exit 1
19
+        fi
20
+    done
21
+
22
     if ! $DAEMON_UTIL check-config; then
23
         log_warning_msg "Incomplete configuration, will not run."
24
         exit 0