https://bugzilla.novell.com/show_bug.cgi?id=728774
https://bugzilla.novell.com/show_bug.cgi?id=728774#c27
--- Comment #27 from Danny van Delft
(In reply to comment #22)
The ntp script its self does not touch /dev/stderr that is if /dev/stderr was removed or replaced then this error simply happens to all scripts. Please note that /etc/rc.status will be sourced/readed at the very first lines of the most boot scripts.
Maybe it would help to add some lines like
rc_exit ()
test -h /dev/stderr || echo "Service $0 has removed /dev/stderr" if test -e /dev/stderr -a "$(readlink /dev/stderr)" != fd/2 ; then echo "Service $0 has destroyed /dev/stderr" fi exit $_rc_status_all }
into the shell function rc_exit() of /etc/rc.status ... maybe with this we will detect the waste producer.
Done that, but gave no output. So added the following lines to /etc/rc.status, just before the "redirecting to systemctl" is done in the start|stop|... section: degbug="logger" echo 'OUTPUT of ls -l /dev/std*' | $degbug ls -l /dev/std* | $degbug echo 'OUTPUT of ls -lL /dev/std*' | $degbug ls -lL /dev/std* | $degbug echo 'OUTPUT of ls -l /dev/fd/*' | $degbug ls -l /dev/fd/* | $degbug echo 'OUTPUT of ls -lL /dev/fd/*' | $degbug ls -lL /dev/fd/* | $degbug echo 'OUTPUT of netstat -l -n -p' | $degbug netstat -l -n -p | $degbug echo 'OUTPUT of ps axf' | $degbug ps axf | $degbug echo "redirecting to systemctl" >/dev/stderr I will attach the output of these. In it you'll see the ultimate destination of /dev/stderr: May 29 13:36:43 postoffice logger: lrwx------ 1 root root 64 May 29 13:36 /dev/fd/2 -> socket:[8947] May 29 13:36:43 postoffice logger: OUTPUT of ls -lL /dev/fd/* May 29 13:36:43 postoffice ntp[1644]: ls: cannot access /dev/fd/3: No such file or directory May 29 13:36:43 postoffice logger: crw-rw-rw- 1 root root 1, 3 May 29 13:36 /dev/fd/0 May 29 13:36:43 postoffice logger: prw------- 1 root root 0 May 29 13:36 /dev/fd/1 May 29 13:36:43 postoffice logger: srwxrwxrwx 1 root root 0 Jan 1 1970 /dev/fd/2 A socket which apparently doesn't exist. HTH -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.