From: Thierry Parmentelat Date: Wed, 26 Jun 2013 05:35:58 +0000 (+0200) Subject: daemonize pl_wrapper to fulfil systemd X-Git-Tag: bootcd-5.2-3~2 X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=commitdiff_plain;h=1e4681d5155799f2c2568b774dd5b5307cd23e96 daemonize pl_wrapper to fulfil systemd --- 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 &