in reply to mod_perl2 interactive startup

Why don't you just check to see if the variable where you put the password has been filled in yet, and skip the terminal if you already have it?

Incidentally, it's not really more secure to enter the password this way than to just keep it in a file that only the web server startup user can read.