--- /dev/null
+#!/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
# 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
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
-