r206@brr: dpavlin | 2007-11-12 23:02:21 +0100
[perl-cwmp.git] / bin / acs.pl
index 6956123..b4b1e8e 100755 (executable)
@@ -12,25 +12,25 @@ use Getopt::Long;
 
 my $port = 3333;
 my $debug = 0;
+my $store_path = './';
+my $store_plugin = 'YAML';
 
 GetOptions(
        'debug+' => \$debug,
        'port=i' => \$port,
+       'store-path=s' => \$store_path,
+       'store-plugin=s' => \$store_plugin,
 );
 
+
 my $server = CWMP::Server->new({
        port => $port,
        store => {
-#              module => 'DBMDeep',
-               module => 'YAML',
-               store_path => 'state.db',
+               module => $store_plugin,
+               path => $store_path,
+               debug => $debug,
        },
        debug => $debug,
-       default_queue => [ qw/
-               GetRPCMethods
-               GetParameterNames
-       / ],
-#              Reboot
 });
 $server->run();