Index: trunk/start
===================================================================
--- trunk/start	(revision 70)
+++ trunk/start	(revision 93)
@@ -1,6 +1,15 @@
-#!/bin/sh
+#!/usr/bin/perl -w
+use strict;
 
-export PERL5LIB=./lib
-export CONFIG_FILE=${1:-"conf.yml"}
+use FindBin;
+use lib "$FindBin::RealBin/lib";
 
-starman --listen :5000 --daemonize --pid pid --error-log errors --access-log access
+use Plack::Runner;
+use BookmarksApp;
+
+my $CONFIG_FILE = shift || 'conf.yml';
+my $app = BookmarksApp->new({ config_file => $CONFIG_FILE })->to_app;
+
+my $runner = Plack::Runner->new(server => 'Starman');
+$runner->parse_options(qw{--listen :5000 --daemonize --pid pid --error-log errors --access-log access});
+$runner->run($app);
