Subject: | Create self-contained init scripts |
It would be nice if Daemon::Control provides an option to create a self-contained init script (say, get_init_file_selfcontained or so). It could work like this:
* Grab the first line, check if it's a shebang, and put it as first line of the init script.
* Add a "generated" comment (and maybe also a "do not edit" comment)
* Add the INIT INFO lines
* Add the rest of the perl script