Init scripts should follow the LSB standard for init scripts and return the appropriate return codes for the service module to interact with them properly: http://refspecs.linux-foundation.org/LSB_3.2.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html. The module does provide some workarounds for scripts that don’t follow the LSB standard, but if you are writing one from scratch, might as well use the standard.
- James