A puppet novice, I’m currently working on a deployment script that will start a couple of foreverjs services from
rc.local at boot time.
My concern is that, in Ubuntu,
rc.local comes with an
exit 0 at the bottom of the file.
I don’t see a way of using stdlib’s
file_line directive to ensure that my lines appear above the exit command (or anywhere else in particular, should the need arise).
I can do it with an
exec block and some ugly sed, but there must be a more standard, elegant way in puppet?
exit 0 at the end of a script is completely redundant, since the script will exit with a 0 return code at its end anyway. You can safely remove this.
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.