root/lang/perl/Punc/trunk/bin/puncmasterd @ 10103

Revision 10103, 465 bytes (checked in by mizzy, 5 years ago)

lang/perl/Punc: branches/ssl を trunk にマージ。brances/ssl は消去。

  • Property svn:executable set to *
Line 
1#!/usr/bin/perl
2
3use strict;
4use warnings;
5use FindBin;
6use File::Spec;
7use lib File::Spec->catdir("$FindBin::Bin/..", 'lib');
8use Punc;
9use Punc::Master::Daemon;
10use Getopt::Long;
11
12GetOptions(
13    '--port=i'    => \my $port,
14    '--confdir=s' => \my $confdir,
15);
16
17$port    ||= 7081;
18$confdir ||= "$FindBin::Bin/../etc";
19
20my $daemon = Punc::Master::Daemon->new({
21    port    => $port,
22    confdir => $confdir,
23    context => Punc->new->context,
24});
25
26$daemon->run;
27
Note: See TracBrowser for help on using the browser.