Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

SysV init interface to multiple PSGI applications

by Dallaylaen (Pilgrim)
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?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2016-10-22 06:36 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (292 votes). Check out past polls.