Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60719 - Request for better error messages from runscript
Summary: Request for better error messages from runscript
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-08-17 16:55 UTC by Salim Fadhley
Modified: 2004-08-18 13:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Salim Fadhley 2004-08-17 16:55:09 UTC
If a service file in init.d contains an error, running it will generate output like this:

sal@imelda bin $ sudo /etc/init.d/audiologger start
* ERROR:  "/etc/init.d/audiologger" has syntax errors in it; not executing...

It would be good to have runscript reveal what line contained the syntax error that caused runscript not to run. Ideally it would also be nice to identify what the nature of the syntax error is.
Comment 1 SpanKY gentoo-dev 2004-08-18 06:03:45 UTC
since init scripts are just glorified bash scripts there isnt much we can do except dump the error bash gave us
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2004-08-18 08:33:24 UTC
fixed in rc-scripts cvs.  It looks like this, which should be good enough for debugging purposes:

/var/lib/init.d/vixie-cron-4244: line 25: syntax error near unexpected token `}'
/var/lib/init.d/vixie-cron-4244: line 25: `}'
 * ERROR:  "./vixie-cron" has syntax errors in it; not executing...
Comment 3 Salim Fadhley 2004-08-18 08:35:48 UTC
Yes, thats a perfect improvement; That should cut down the time taken to debug this class of error in future. 
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2004-08-18 13:44:52 UTC
it's in baselayout-1.10.4, released today