From 1e4681d5155799f2c2568b774dd5b5307cd23e96 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Wed, 26 Jun 2013 07:35:58 +0200 Subject: [PATCH] daemonize pl_wrapper to fulfil systemd --- initscripts/pl_wrapper | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/initscripts/pl_wrapper b/initscripts/pl_wrapper index 6e08c84..e3b3880 100755 --- a/initscripts/pl_wrapper +++ b/initscripts/pl_wrapper @@ -1,10 +1,13 @@ #!/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 +# 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 # # also we just run both in sequence instead of relying on convoluted systemd dependencies +# +# while we're at it we deamonize the whole thing so ayatollesque systemd is happier # -(bash -x /etc/init.d/pl_sysinit ; bash -x /etc/init.d/pl_boot) >> /var/log/pl-boot 2>&1 +exec 0<&- +(bash -x /etc/init.d/pl_sysinit ; bash -x /etc/init.d/pl_boot) >> /var/log/pl-boot 2>&1 & -- 2.43.0