Problem popped up when using su to change to root account.
Solution: Use sudo or su - or root user directly or unset UPSTART_SESSION environment variable.
Upstart commands should act more consistently in above case, e.g.:
root@u14:/home/ltest# init-checkconf /etc/init.d/rpcbind ERROR: File /etc/init/rpcbind.conf: syntax invalid: root@u14:/home/ltest# init-checkconf /etc/init.d/rpcbind ERROR: File /etc/init/rpcbind.conf: syntax ok root@u14:/home/ltest#
does not give a good hint on what goes wrong. Using init-checkconf -d ... does not seem to have this problem.
Similar problems with other upstart commands.
Problem popped up when using su to change to root account.
Solution: Use sudo or su - or root user directly or unset UPSTART_SESSION environment variable.
Upstart commands should act more consistently in above case, e.g.:
root@u14: /home/ltest# init-checkconf /etc/init.d/rpcbind rpcbind. conf: syntax invalid: /home/ltest# init-checkconf /etc/init.d/rpcbind rpcbind. conf: syntax ok /home/ltest#
ERROR: File /etc/init/
root@u14:
ERROR: File /etc/init/
root@u14:
does not give a good hint on what goes wrong. Using init-checkconf -d ... does not seem to have this problem.
Similar problems with other upstart commands.