Comment 3 for bug 1400495

Revision history for this message
Rich Drewes (drewes) wrote :

Actually, it seems there isn't anything in particular about being in a script that causes init-checkconf to return random results. If I repeat the same command a number of times the results vary:

----
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
ERROR: File /etc/init/tty5.conf: syntax invalid:
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
ERROR: File /etc/init/tty5.conf: syntax invalid:
root@ladastra:/oldroot/home/drewes# init-checkconf /etc/init/tty5.conf
File /etc/init/tty5.conf: syntax ok
----

As is evident, sometimes the syntax is reported as being ok and sometimes invalid.

Rich