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

2015-12-17 Thread Andrei Borzenkov
18.12.2015 10:22, Tobias Hunger пишет: > Am 18.12.2015 07:51 schrieb "Navneet Sinha" : >> 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. > >

Re: [systemd-devel] Fwd: Does Systemd also mount sysfs, procfs?

2015-12-17 Thread Andrei Borzenkov
18.12.2015 03:19, 유준봉 пишет: > What this situation means when child directory returns fail for > name_to_handle_at( ) but its parent returns success for the same function? > does it mean '/sys' is already mounted before '/sbin/init' is executed? If > so, then who mounts sysfs, procfs, and also root

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

2015-12-17 Thread Tobias Hunger
Am 18.12.2015 07:51 schrieb "Navneet Sinha" : > 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 o

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

2015-12-17 Thread Navneet Sinha
On Fri, Dec 18, 2015 at 11:17 AM, Johan Ouwerkerk wrote: > You say this part: > > > echo -n $"$msg (press ESC to skip): " > /dev/console > > Displays fine. > > But these: > > echo "[ OK ]" > > echo > > And these: > > echo "[ FAIL

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

2015-12-17 Thread Johan Ouwerkerk
You say this part: > echo -n $"$msg (press ESC to skip): " > /dev/console Displays fine. But these: > echo "[ OK ]" > echo And these: > echo "[ FAILED ]" > echo "This is failure" Don't. Spotting the obvious

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

2015-12-17 Thread Navneet Sinha
I have systemd service, say xyzWarmup.service. Here is the service file [Unit] Description=Xyz agent. After=fooAfter.service Before=fooBefore1.service Before=fooBefore2.service [Service] # During boot the xyz.sh script reads input from /dev/console. If the user #

[systemd-devel] Fwd: Does Systemd also mount sysfs, procfs?

2015-12-17 Thread 유준봉
Hi I just started to understand systemd source code. Now I'm curious about mounting linux pseudo-filesystemd like sysfs and porcfs. In main( ) function from /src/core/main.c, there is several mounting related functions like: 1. mount_setup_early 2. mount_setup 3. mount_cgroupt_controllers and als