Skip to content

Instantly share code, notes, and snippets.

@earino
Created November 7, 2012 20:04
Show Gist options
  • Save earino/4034030 to your computer and use it in GitHub Desktop.
Save earino/4034030 to your computer and use it in GitHub Desktop.
Daemon::Daemonize and Server::Starter
58 my $exec = ['plackup', '-s', 'Starman', @options, $app];
59 daemonize(
60 run => sub{
61 start_server(
62 port => $port,
63 pid_file => $pid_file,
64 status_file => $status_file,
65 exec => $exec,
66 );
67 },
68 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment