[systemd-devel] echo message not coming on terminal with systemd

Navneet Sinha nnavneetsinha1001 at gmail.com
Fri Dec 18 04:45:24 PST 2015


One more observation to note is, if I change
systemd.default_standard_output=tty
to systemd.default_standard_output=console. I start seeing the missing echo
messages. Can anyone from this observation make out something  and why this
is happening ?

thanks
Navneet

On Fri, Dec 18, 2015 at 5:09 PM, Navneet Sinha <nnavneetsinha1001 at gmail.com>
wrote:

>
>
> On Fri, Dec 18, 2015 at 2:08 PM, Navneet Sinha <
> nnavneetsinha1001 at gmail.com> wrote:
>
>>
>>
>> On Fri, Dec 18, 2015 at 1:24 PM, Andrei Borzenkov <arvidjaar at gmail.com>
>> wrote:
>>
>>> 18.12.2015 10:22, Tobias Hunger пишет:
>>> > Am 18.12.2015 07:51 schrieb "Navneet Sinha" <
>>> nnavneetsinha1001 at gmail.com>:
>>> >> No it doesn't fix it. Secondly, my main problem is why it is not
>>> working
>>> > with systemd. When, I was using this script as initscript before
>>> porting
>>> > this to systemd. I was able to see all echo messages.
>>> >
>>> > Sysvinit did not care for stdout and stderr. The output to those goes
>>> > wherever those happen to be connected to.
>>> >
>>> > Systemd on the other hand catches stdout and stderr and redirects both
>>> into
>>> > the logs.
>>> >
>>>
>>> If you actually read original post, you would see that stdout is *not*
>>> redirected to logs. And I cannot reproduce it either - with
>>> StandardInput=tty (and StandardOutput left as default inherit) I both
>>> see output from script and it accepts ESC as termination condition.
>>>
>> Ok, I will try out changing StandardOutput and will let you know.
>>
>> I tried with removing StandarOutput but that also doesn't seems to help.
> May be because I have systemd.default_standard_output=tty set in systemd
> conf file. But, if I remove this line, then, I loose almost all echo
> meesages coming from other initscripts.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20151218/73ce23fc/attachment-0001.html>


More information about the systemd-devel mailing list