[systemd-devel] Unbuffered stderr for my systemd service?

2013-07-15 Thread WANG Chao
Hi, I have a service (a script) running under systemd and need its stderr to be output'd immediately, not line buffered. I tried serveral ways but didn't work out. I hope to get some feedback here :) Here's my foobar.service: -- [Service] Type=oneshot ExecStart=-/bin/foobar.sh StandardInput=null

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-15 Thread Vivek Goyal
On Mon, Jul 15, 2013 at 05:56:29PM +0800, WANG Chao wrote: > Hi, > > I have a service (a script) running under systemd and need its stderr to > be output'd immediately, not line buffered. I tried serveral ways but > didn't work out. I hope to get some feedback here :) > > Here's my foobar.service

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-15 Thread Mantas Mikulėnas
On Mon, Jul 15, 2013 at 5:32 PM, Vivek Goyal wrote: > This is important functionality for us. makeudmpfile utility (utility which > filters kernel crash dump and shows the progress bar), run in kdump > kernel. For large machines it displays the progress bar in kernel. Right > now all the code runs

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-15 Thread Lennart Poettering
On Mon, 15.07.13 17:56, WANG Chao (chaow...@redhat.com) wrote: > Hi, > > I have a service (a script) running under systemd and need its stderr to > be output'd immediately, not line buffered. I tried serveral ways but > didn't work out. I hope to get some feedback here :) This is not supported.

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-15 Thread Lennart Poettering
On Mon, 15.07.13 10:32, Vivek Goyal (vgo...@redhat.com) wrote: > CCing Lennart. > > This is important functionality for us. makeudmpfile utility (utility which > filters kernel crash dump and shows the progress bar), run in kdump > kernel. For large machines it displays the progress bar in kerne

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-15 Thread Vivek Goyal
On Mon, Jul 15, 2013 at 10:47:23PM +0200, Lennart Poettering wrote: > On Mon, 15.07.13 10:32, Vivek Goyal (vgo...@redhat.com) wrote: > > > CCing Lennart. > > > > This is important functionality for us. makeudmpfile utility (utility which > > filters kernel crash dump and shows the progress bar),

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-15 Thread Lennart Poettering
On Mon, 15.07.13 16:54, Vivek Goyal (vgo...@redhat.com) wrote: > > On Mon, Jul 15, 2013 at 10:47:23PM +0200, Lennart Poettering wrote: > > On Mon, 15.07.13 10:32, Vivek Goyal (vgo...@redhat.com) wrote: > > > > > CCing Lennart. > > > > > > This is important functionality for us. makeudmpfile uti

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-15 Thread WANG Chao
On 07/15/13 at 10:46pm, Lennart Poettering wrote: > On Mon, 15.07.13 17:56, WANG Chao (chaow...@redhat.com) wrote: > > > Hi, > > > > I have a service (a script) running under systemd and need its stderr to > > be output'd immediately, not line buffered. I tried serveral ways but > > didn't work o

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-16 Thread Kay Sievers
On Tue, Jul 16, 2013 at 5:30 AM, WANG Chao wrote: >> (Humm, please do not use "--" on a single line in the middle of an >> email, that's indication for many MUAs that this is where the signature >> starts, and they chop this off when replying...) > > Sorry about "--", never thought that would be

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-16 Thread Kay Sievers
On Tue, Jul 16, 2013 at 5:30 AM, WANG Chao wrote: > On 07/15/13 at 10:46pm, Lennart Poettering wrote: >> On Mon, 15.07.13 17:56, WANG Chao (chaow...@redhat.com) wrote: >> >> > I have a service (a script) running under systemd and need its stderr to >> > be output'd immediately, not line buffered.

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-16 Thread WANG Chao
On 07/16/13 at 01:39pm, Kay Sievers wrote: > On Tue, Jul 16, 2013 at 5:30 AM, WANG Chao wrote: > > >> (Humm, please do not use "--" on a single line in the middle of an > >> email, that's indication for many MUAs that this is where the signature > >> starts, and they chop this off when replying..

Re: [systemd-devel] Unbuffered stderr for my systemd service?

2013-07-16 Thread WANG Chao
On 07/16/13 at 02:00pm, Kay Sievers wrote: > On Tue, Jul 16, 2013 at 5:30 AM, WANG Chao wrote: > > On 07/15/13 at 10:46pm, Lennart Poettering wrote: > >> On Mon, 15.07.13 17:56, WANG Chao (chaow...@redhat.com) wrote: > >> > >> > I have a service (a script) running under systemd and need its stderr