# Custom startup scripts not working with service module

**URL:** <https://forum.ansible.com/t/custom-startup-scripts-not-working-with-service-module/17658>\
**Category:** Ansible Project\
**Created:** [March 3, 2015, 1:44pm UTC](https://forum.ansible.com/t/custom-startup-scripts-not-working-with-service-module/17658 "2015-03-03T13:44:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![James\_Martin1](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@James\_Martin1](https://forum.ansible.com/u/James_Martin1)\
**Post date:** [March 3, 2015, 1:44pm UTC](https://forum.ansible.com/t/custom-startup-scripts-not-working-with-service-module/17658/1 "2015-03-03T13:44:02Z")

</div>

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](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
