Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

SysV init interface to multiple PSGI applications

by Dallaylaen (Scribe)
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 wandering the Monastery: (14)
As of 2014-08-01 17:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (37 votes), past polls