plackup utilを回避するのは簡単です。fastcgiの例を示すことができますが、.psgiファイルを忘れたスターマンで同じことを行い、単純な起動スクリプトを使用することも可能です。
my $app = sub {
my $env = shift;
#...
}
#read the pid file, check for an old process, kill the old process...
#...
#choose a psgi Server impl.
#i prefere fcgi
my $manager = new FCGI::ProcManager::MaxRequests({
'max_requests'=>100,
'pid_fname'=>$pid_file,
'n_processes'=> 3,
'pm_title'=> $name
});
my $server = Plack::Handler::FCGI->new(
'listen'=>[$socket],
'detach' => 1,
'manager' => $manager
); #またはPlack::Loaderを使用してサーバーをロードする
#アプリケーションを実行します$ server-> run($ app);
次に、taintmodeperl-Tを使用してstartup.plスクリプトを開始します