#!/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
#!/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 ""
# 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
#
-(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
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]
-# 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
-