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

Navneet Sinha nnavneetsinha1001 at gmail.com
Fri Dec 18 03:39:55 PST 2015


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/fdc5277b/attachment.html>


More information about the systemd-devel mailing list