Dallaylaen has asked for the wisdom of the Perl Monks concerning the following question:
Is there a standard way of building init scripts for psgi apps? (Apart from writing a separate shell script for every app and/or adding a line to rc.local)
What I want is to write a (relatively) simple config file with all my PSGI's and their respective port numbers and options and then do like follows:
% sudo service psgi restart # restart all % sudo service psgi stop foo # no instances except foo are affected % sudo service psgi check bar # check that bar's script compiles OK, don't run it
I'm thinking of writing a wrapper around Daemon::Control + YAML, but maybe there's already a solution?
Some people also suggest using runit. Looks promising... But I'm still interested in an init variant.
|
---|
Back to
Seekers of Perl Wisdom