obviously I did not get it what ExecStart supports - just like anything else in syste...
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 7 Mar 2015 21:43:14 +0000 (22:43 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 7 Mar 2015 21:43:14 +0000 (22:43 +0100)
initscripts/pl_wrapper
systemd/pl_boot.service

index ca5474c..b524191 100755 (executable)
@@ -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
index 8fd36ac..b75fa83 100644 (file)
@@ -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
+