|
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 | |
|---|
| 3 | use strict; |
|---|
| 4 | use warnings; |
|---|
| 5 | use FindBin; |
|---|
| 6 | use File::Spec; |
|---|
| 7 | use lib File::Spec->catdir("$FindBin::Bin/..", 'lib'); |
|---|
| 8 | use Punc; |
|---|
| 9 | use Punc::Master::Daemon; |
|---|
| 10 | use Getopt::Long; |
|---|
| 11 | |
|---|
| 12 | GetOptions( |
|---|
| 13 | '--port=i' => \my $port, |
|---|
| 14 | '--confdir=s' => \my $confdir, |
|---|
| 15 | ); |
|---|
| 16 | |
|---|
| 17 | $port ||= 7081; |
|---|
| 18 | $confdir ||= "$FindBin::Bin/../etc"; |
|---|
| 19 | |
|---|
| 20 | my $daemon = Punc::Master::Daemon->new({ |
|---|
| 21 | port => $port, |
|---|
| 22 | confdir => $confdir, |
|---|
| 23 | context => Punc->new->context, |
|---|
| 24 | }); |
|---|
| 25 | |
|---|
| 26 | $daemon->run; |
|---|
| 27 | |
|---|