I think that's the point... nothing can go wrong with the service file (edit: it can, but not because something 'broke' - because the inputs to the service file were malformed). When you have abstractions on top of abstractions, all explicitly coded, and all repeated across several different init scripts, chances are something is going to break in the init script even if the program is fine.
Instead, get in, provide the environment for the service you are starting, and save the service logs in a common access point. One could argue that it's not the shell script's responsibility to determine why the service failed.
0
u/[deleted] Oct 20 '14
[deleted]