ramaze command line problem

3 views
Skip to first unread message

Tamas

unread,
Sep 10, 2008, 5:43:20 AM9/10/08
to Ramaze
Hi all,

I'm not a professional developer, "just a sysadmin" so please be
patient with me :)
I'm developing my first ramaze app and have problem running it on both
Ubuntu and OpenSUSE.
launching ramaze I get the following:

pls009:/var/hhu/irma # ramaze
Instructing daemonize to: start
pid-file for killed process 5311 found (/tmp/ramaze.pids/irma.pid),
deleting.
option :backtrace is not supported with :mode => :exec, ignoring

It's in my start.rb:

#!/usr/bin/env ruby
require 'rubygems'
require 'jcode'
$KCODE= 'UTF8'
require 'unicode'
require 'oniguruma'
require 'uri'
require 'sequel'
require 'sequel_pg_tree'
require 'ramaze'
require 'models'

acquire __DIR__/:controller/'*'
Ramaze.start :adapter => :mongrel , :port => 80, :load_engines
=> :Erubis, :host => 'xxx.xxx.xxx.xxx'


Could someone give me some hint what could be the problem? I'd like to
run it daemonized.

Thanks!

Tamas

360R8

unread,
Sep 11, 2008, 2:21:13 PM9/11/08
to Ramaze
Hi Tamas,

I don't have much to contribute here, but I experienced the same
problem in the past. It looks like this two options are conflicting
when calling Daemons:

http://github.com/manveru/ramaze/tree/master/lib/ramaze/tool/daemonize.rb#L30#L31

I never got it working and ended up using God to launch ruby start.rb.
It does involve more dependency and setup.

Btw, did anyone actually got Ramaze to run in daemonize mode out of
the box?

Michael Fellinger

unread,
Sep 11, 2008, 2:35:46 PM9/11/08
to ram...@googlegroups.com
On Fri, Sep 12, 2008 at 3:21 AM, 360R8 <sea...@gmail.com> wrote:
>
> Hi Tamas,
>
> I don't have much to contribute here, but I experienced the same
> problem in the past. It looks like this two options are conflicting
> when calling Daemons:
>
> http://github.com/manveru/ramaze/tree/master/lib/ramaze/tool/daemonize.rb#L30#L31
>
> I never got it working and ended up using God to launch ruby start.rb.
> It does involve more dependency and setup.
>
> Btw, did anyone actually got Ramaze to run in daemonize mode out of
> the box?

The latest gem from github or a simple clone from there should solve
your issues, i recently fixed both daemonize and --console

^ manveru

Reply all
Reply to author
Forward
0 new messages