Doing that directly makes little sense. The terminal will eventually go away, and your service will start getting write errors for stdout.<div><br></div><div>Instead it would be better if systemctl could spawn `journalctl --follow --unit=`... I remember it used to have a follow option for status.<br><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 11, 2017, 05:29 Sergei Franco <<a href="mailto:sergei.franco@gmail.com">sergei.franco@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br></div><div>I am trying to retain behaviour of the startup scripts the same as sysvinit.<br></div><div>For example, on sysv the script outputs feedback to the console when the stopping and starting is done via console.<br></div><div>With systemd all output is "hidden", and to see the output you need to check the journal (or syslog if configured). There is no feedback.<br></div><div> <br></div>Is it possible to configure StandardOutput=tty (and StandardErrror) where TTYPath= is set to current $SSH_TTY env (be that /devpts/0,/dev/pts/1 or /dev/pts/n)?<br><br></div>Regards.<br><br></div>Sergei.<br><div><div><div><span class="m_892585791389316112gmail-term"><code class="m_892585791389316112gmail-varname"></code></span></div></div></div></div>
_______________________________________________<br>
systemd-devel mailing list<br>
<a href="mailto:systemd-devel@lists.freedesktop.org" target="_blank">systemd-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a><br>
</blockquote></div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><p dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com">grawity@gmail.com</a>><br>
Sent from my phone</p>
</div></div>