coming back to a model that works .. most of the time
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sun, 8 Mar 2015 17:04:52 +0000 (18:04 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sun, 8 Mar 2015 17:04:52 +0000 (18:04 +0100)
initscripts/pl_boot
initscripts/pl_sysinit
initscripts/pl_wrapper
systemd/pl_boot.service

index 931af20..51aee96 100755 (executable)
@@ -1,5 +1,13 @@
 #!/bin/bash
 
 #!/bin/bash
 
+### xxx tmp debug
+
+set -x
+echo pl_boot on console > /dev/console
+exec > /dev/console
+echo pl_boot plain
+
+###
 . /etc/init.d/pl_functions
 
 . /tmp/planet.cnf
 . /etc/init.d/pl_functions
 
 . /tmp/planet.cnf
index 8b3d421..388010b 100755 (executable)
@@ -1,5 +1,13 @@
 #!/bin/sh
 
 #!/bin/sh
 
+### xxx tmp debug
+
+set -x
+echo pl_sysinit on console > /dev/console
+exec > /dev/console
+echo pl_sysinit plain
+
+###
 . /etc/init.d/pl_functions
 
 echo ""
 . /etc/init.d/pl_functions
 
 echo ""
index da5fc3a..a46b9f5 100755 (executable)
@@ -3,8 +3,8 @@
 # nodes starting up with fedora18 - especially under kvm/qemu btw
 # tend to startup unreliably, this is an attempt to get more details by
 # * running pl_boot and pl_sysinit in -x mode
 # nodes starting up with fedora18 - especially under kvm/qemu btw
 # tend to startup unreliably, this is an attempt to get more details by
 # * running pl_boot and pl_sysinit in -x mode
-# * and logging everything in /var/log/pl-boot
+# * and logging everything in /var/log/ as well as echoing in /dev/console
 #
 # also we just run both in sequence instead of relying on convoluted systemd dependencies
 # 
 #
 # also we just run both in sequence instead of relying on convoluted systemd dependencies
 # 
-(bash -x /etc/init.d/pl_sysinit ; bash -x /etc/init.d/pl_boot) > /dev/console 2>&1
+(bash -x /etc/init.d/pl_sysinit ; bash -x /etc/init.d/pl_boot) 2>&1 | tee /var/log/bootcd.log > /dev/console
index b75fa83..7ab5f8e 100644 (file)
@@ -3,12 +3,9 @@ Description=pl_boot service
 Wants=network-online.target
 After=network.target
 
 Wants=network-online.target
 After=network.target
 
+# in debug mode we fork bash -x so that we can get a grip on
+# what exactly is going on in here
 [Service]
 [Service]
-# it is possible to mention ExecStart several times
-#ExecStart=/etc/init.d/pl_sysinit
-#ExecStart=/etc/init.d/pl_boot
-# However pl_wrapper is a convenience that lets us
-# reliably redirect outputs to the console
-ExecStart=/etc/init/pl_wrapper
+ExecStart=/etc/init.d/pl_sysinit
+ExecStart=/etc/init.d/pl_boot
 Type=oneshot
 Type=oneshot
-