From: Thierry Parmentelat Date: Sat, 7 Mar 2015 21:43:14 +0000 (+0100) Subject: obviously I did not get it what ExecStart supports - just like anything else in syste... X-Git-Tag: bootcd-5.2-5~10 X-Git-Url: http://git.onelab.eu/?p=bootcd.git;a=commitdiff_plain;h=f72c9af1bd5b804bbccf7f9126a6649880cf7072 obviously I did not get it what ExecStart supports - just like anything else in systemd apparently --- 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 +