Maybe I'm too conservative here, but as sysadmin I don't like libraries/modules that do more than install when I tell them to install.

For example, I might not have apache and/or the jpegs and html files installed when I install your module.
I might not want all htmls and jpegs included in your database.
This could be DOM0 of a virtual setup and only the clients should have those databases.
I might have more than one apache installed, only one should get the treatment.
Maybe I just want to look at the module to evaluate it for a different machine.
Maybe I have a non-standard installation that will let your script do something bad if not adapted.
Maybe I have a few terabytes of jpegs and html so that your database would overflow the /var space.
The machine might have some security setup where the unexpected creation of files in specific directories leads to emergency shutdown of the machine.
The sysadmin might have very different ideas about where your database should be put.
The installation might have to be redone a few times (maybe because it is part of a bigger installation script that doesn't work correctly) and it wastes 20 minutes every time.
Or there were some changes necessary in the database and every reinstall of a new version of your module will overwrite those changes
Maybe there are hundreds of machines all of which get the same identical library installation, but only one of the machines will be a web server. And all have access to a big html-data directory through (traffic-heavy) NFS.

Calling your init script should be done explicitly by anyone using your module. He should know what to expect, should know what your init script does before he calls it. You should put a text something like 'Call the script with parameters a and b to initialize the database before first use. This will do the following:...' into the usage description of the pod documentation.

All this IMHO


In reply to Re^3: RFC: Apache2::CloseKeepAlive by jethro
in thread RFC: Apache2::CloseKeepAlive by cmac

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.