Skip to content

Instantly share code, notes, and snippets.

@stevelippert
Created March 10, 2014 17:46
Show Gist options
  • Select an option

  • Save stevelippert/9470160 to your computer and use it in GitHub Desktop.

Select an option

Save stevelippert/9470160 to your computer and use it in GitHub Desktop.
A simple Ubic Multiservice initialization script
use Ubic::Multiservice::Simple;
use Ubic::Service::SimpleDaemon;
return Ubic::Multiservice::Simple->new({
map { (
"worker$_" => Ubic::Service::SimpleDaemon->new({
bin => "/home/steve/worker.pl",
})
)}(1..2)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment