From f72c9af1bd5b804bbccf7f9126a6649880cf7072 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Sat, 7 Mar 2015 22:43:14 +0100 Subject: [PATCH] obviously I did not get it what ExecStart supports - just like anything else in systemd apparently --- initscripts/pl_wrapper | 2 +- systemd/pl_boot.service | 11 +++++++---- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/initscripts/pl_wrapper b/initscripts/pl_wrapper index ca5474c..b524191 100755 --- a/initscripts/pl_wrapper +++ b/initscripts/pl_wrapper @@ -7,4 +7,4 @@ # # 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/bootcd.log 2>&1 +(bash -x /etc/init.d/pl_sysinit ; bash -x /etc/init.d/pl_boot) >& /dev/console diff --git a/systemd/pl_boot.service b/systemd/pl_boot.service index 8fd36ac..b75fa83 100644 --- a/systemd/pl_boot.service +++ b/systemd/pl_boot.service @@ -3,9 +3,12 @@ Description=pl_boot service 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] -ExecStart=/bin/bash -x /etc/init.d/pl_sysinit > /dev/console -ExecStart=/bin/bash -x /etc/init.d/pl_boot > /dev/console +# 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 Type=oneshot + -- 2.43.0