Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

SysV init interface to multiple PSGI applications

by Dallaylaen (Monk)
on Jan 30, 2013 at 06:32 UTC ( #1015977=perlquestion: print w/ replies, xml ) Need Help??
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.

Comment on SysV init interface to multiple PSGI applications

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1015977]
Approved by vinoth.ree
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (18)
As of 2015-07-01 15:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (6 votes), past polls