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

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?

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 surveying the Monastery: (12)
As of 2015-12-01 18:13 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (24 votes), past polls