Sponsored Content
Full Discussion: Using ACTIVEHOST
Top Forums UNIX for Dummies Questions & Answers Using ACTIVEHOST Post 302696951 by Newer on Wednesday 5th of September 2012 11:13:10 PM
Old 09-06-2012
Jim Mcnamara, my servers are running on Red Hat 5 Enterprise.
I really didn't understand anything, i'm a beginner on this frame. That's why, i don't know may be what i'm talking about.
I'll explain to you again.
I have two servers that use the same application and the same directory(share), so this app can't run in both at the same time, it means that if some user execute the script (star) that put it on march this app from one of this server, anoter user can not put on march other instance. That's what i'm trying to avoid.

---------- Post updated at 12:13 AM ---------- Previous update was at 12:05 AM ----------

I have another idea, include on my start script a bucle that check before execute, if my app is running already. I have the ideas, but no the how to do it!
 
Plack::Runner(3pm)					User Contributed Perl Documentation					Plack::Runner(3pm)

NAME
Plack::Runner - plackup core SYNOPSIS
# Your bootstrap script use Plack::Runner; my $app = sub { ... }; my $runner = Plack::Runner->new; $runner->parse_options(@ARGV); $runner->run($app); DESCRIPTION
Plack::Runner is the core of plackup runner script. You can create your own frontend to run your application or framework, munge command line options and pass that to "run" method of this class. "run" method does exactly the same thing as the plackup script does, but one notable addition is that you can pass a PSGI application code reference directly to the method, rather than via ".psgi" file path or with "-e" switch. This would be useful if you want to make an installable PSGI application. Also, when "-h" or "--help" switch is passed, the usage text is automatically extracted from your own script using Pod::Usage. NOTES
Do not directly call this module from your ".psgi", since that makes your PSGI application unnecessarily depend on plackup and won't run other backends like Plack::Handler::Apache2 or mod_psgi. If you really want to make your ".psgi" runnable as a standalone script, you can do this: my $app = sub { ... }; unless (caller) { require Plack::Runner; my $runner = Plack::Runner->new; $runner->parse_options(@ARGV); return $runner->run($app); } return $app; WARNING: this section used to recommend "if (__FILE__ eq $0)" but it's known to be broken since Plack 0.9971, since $0 is now always set to the .psgi file path even when you run it from plackup. SEE ALSO
plackup perl v5.14.2 2012-03-21 Plack::Runner(3pm)
All times are GMT -4. The time now is 02:26 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy