]> git.proxmox.com Git - pve-ha-manager.git/commitdiff
really activate softdog
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 16 Mar 2015 12:01:03 +0000 (13:01 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 16 Mar 2015 12:01:03 +0000 (13:01 +0100)
We can set options in  /lib/modprobe.d/aliases.conf

src/watchdog-mux.c

index bdd2119f8bead2834c3caa8af4728982f2f1b971..71a8404f2ab2db5e93531093934f8538819ba42d 100644 (file)
@@ -115,9 +115,12 @@ main(void)
         fprintf(stderr, "watchdog active - unable to restart watchdog-mux\n");
         exit(EXIT_FAILURE);       
     }
-    
+
+    /* if you want to debug, set options in /lib/modprobe.d/aliases.conf
+     * options softdog soft_noboot=1
+     */
     if (stat(WATCHDOG_DEV, &fs) == -1) {
-        system("modprobe -q softdog soft_noboot=1"); // fixme
+        system("modprobe -q softdog"); // load softdog by default
     }
 
     if ((watchdog_fd = open(WATCHDOG_DEV, O_WRONLY)) == -1) {