Rails unicorn start on boot error

15 views
Skip to first unread message

Ed Ed

unread,
May 19, 2014, 12:18:23 PM5/19/14
to rubyonra...@googlegroups.com
Hello,guys. I have a problem with unicorn start on boot (OS is gentoo).
I write in /etc/local.d/local.start file:
#!bin/sh
/etc/init.d/unicorn start

and when I reboot computer it can't start my rails application and in
unicorn.stderr.log writes 'require cannot load such file --
bundler/setup (LoadError)'. But when I write in shell
"/etc/init.d/unicorn start" everything is ok. My app is running. Can
someone help me?

--
Posted via http://www.ruby-forum.com/.

Hassan Schroeder

unread,
May 19, 2014, 1:32:09 PM5/19/14
to rubyonrails-talk
Environment 1: running a script as user 'root' at boot time
Environment 2: running a script as you in a login shell

One of these things is not like the other :-)

--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan

Ed Ed

unread,
May 20, 2014, 4:43:10 AM5/20/14
to rubyonra...@googlegroups.com
> Environment 1: running a script as user 'root' at boot time
> Environment 2: running a script as you in a login shell
>
> One of these things is not like the other :-)
>

Thanks, I undestood. And what should I do? I can't run script as other
user when boot?

Ed Ed

unread,
May 20, 2014, 5:25:36 AM5/20/14
to rubyonra...@googlegroups.com
> Thanks, I undestood. And what should I do? I can't run script as other
> user when boot?


I've already solve my problem. I wrote 'su -l user -c command' in my
local.start file, and everything is ok.
Reply all
Reply to author
Forward
0 new messages