attempt to gather more data on bootcd boot sequence when run under systemd
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 25 Jun 2013 15:49:03 +0000 (17:49 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Tue, 25 Jun 2013 15:49:27 +0000 (17:49 +0200)
initscripts/pl_wrapper [new file with mode: 0644]
prep.sh
systemd/pl_boot.service

diff --git a/initscripts/pl_wrapper b/initscripts/pl_wrapper
new file mode 100644 (file)
index 0000000..6e08c84
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+#
+# nodes starting up with fedora18 - especially under kvm/qemu btw
+# tend to unreliably startup, this is an attempt to get more details 
+# on what is actually going on by running pl_boot and pl_sysinit in -x mode
+# and logging everything in /var/log/pl-boot
+#
+# 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) >> /var/log/pl-boot 2>&1
diff --git a/prep.sh b/prep.sh
index 6e256c0..fe47ee0 100755 (executable)
--- a/prep.sh
+++ b/prep.sh
@@ -60,7 +60,7 @@ install -D -m 755 ipnmac/ipnmac.x86 $bootcd/usr/sbin/ipnmac
 
 # Install initscripts
 echo "* Installing initscripts"
-for file in pl_functions pl_sysinit pl_hwinit pl_netinit pl_validateconf pl_boot ; do
+for file in pl_functions pl_sysinit pl_hwinit pl_netinit pl_validateconf pl_boot pl_wrapper ; do
     sed -i -e "s,@PLDISTRO@,$pldistro,g" -e "s,@FCDISTRO@,$fcdistro,g" initscripts/$file
     install -D -m 755 initscripts/$file $bootcd/etc/init.d/$file
 done
index 793bd3d..c8f0a38 100644 (file)
@@ -2,7 +2,5 @@
 Description=pl_boot service
 
 [Service]
-ExecStart=/etc/init.d/pl_boot
-ExecStartPre=/etc/init.d/pl_sysinit
+ExecStart=/etc/init.d/pl_wrapper
 Type=oneshot
-