Public bug reported: While tracking down a problem related to upstart, I decided to check the syntax of all my upstart init files. I wrote this simple script:
for a in /etc/init/*; do init-checkconf $a; done 2>&1 | grep invalid This script said that a number of files had syntax errors. When the file with the error is checked individually on the command line with init-checkconf, it shows no error. Running the script again showed a different set of files with errors. Checking each file individually on the command line does not show an error. Running it a third time gave yet another set of files with errors. Why would this give different results each time it is run? Why does init-checkconf report seemingly random syntax errors when run in a script? Rich ProblemType: Bug DistroRelease: Ubuntu 14.04 Package: upstart 1.12.1-0ubuntu4.2 ProcVersionSignature: Ubuntu 3.13.0-32.57-generic 3.13.11.4 Uname: Linux 3.13.0-32-generic x86_64 .etc.init.glusterfs.server.override: manual .etc.init.mounting.glusterfs.override: manual .etc.init.mysql.override: manual ApportVersion: 2.14.1-0ubuntu3.5 Architecture: amd64 CurrentDesktop: Unity Date: Mon Dec 8 13:08:53 2014 ProcKernelCmdline: BOOT_IMAGE=/boot/vmlinuz-3.13.0-32-generic root=UUID=0feac9b2-7f2c-44ed-af0a-e7ace6c02b41 ro nomdmonddf nomdmonisw nomdmonddf nomdmonisw SourcePackage: upstart UpgradeStatus: Upgraded to trusty on 2014-04-19 (233 days ago) UpstartBugCategory: System UpstartRunningSessionVersion: init (upstart 1.12.1) UpstartRunningSystemVersion: init (upstart 1.12.1) modified.conffile..etc.at.deny: [inaccessible: [Errno 13] Permission denied: '/etc/at.deny'] modified.conffile..etc.dconf.db.gdm: [modified] modified.conffile..etc.default.cups: [modified] modified.conffile..etc.init.d.smbd: [modified] modified.conffile..etc.vsftpd.conf: [modified] mtime.conffile..etc.dconf.db.gdm: 2014-07-31T12:57:17 mtime.conffile..etc.default.cups: 2014-04-19T12:34:54 mtime.conffile..etc.init.d.smbd: 2014-12-08T11:57:38.341196 mtime.conffile..etc.vsftpd.conf: 2014-06-06T13:12:21 ** Affects: upstart (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug trusty -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1400495 Title: init-checkconf returns seemingly random results To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/upstart/+bug/1400495/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs