Skip to content

Instantly share code, notes, and snippets.

@berekuk
Created January 19, 2012 17:39
Show Gist options
  • Select an option

  • Save berekuk/1641383 to your computer and use it in GitHub Desktop.

Select an option

Save berekuk/1641383 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use Ubic::Service::Plack;
my $service = Ubic::Service::Plack->new({
server => "FCGI",
server_args => { listen => "/tmp/app.sock", nproc => 5 },
app => "/opt/my-app/app.psgi",
pidfile => "/opt/my-app/app.pid",
port => 8080,
ubic_log => ""/opt/my-app/log/ubic.log",
stdout_log => ""/opt/my-app/log/stdout.log",
stderr_log => ""/opt/my-app/log/stderr.log",
user => "my-user",
});
my $command = shift;
$service->$command;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment