I have a running Redmine instance in a jail (which is based on Ruby, argh). The instance depends on
Things work fine in rc.local, but I wanted to do them in a proper way, and write a custom rc.d script. For reference this is the working command:
I just started to write the script, so it is still WIP. However, at the current stage I have issues with getting
When I run the rc.d script with
Right now I just symlinked bash to /usr/bin/bash which is a viable workaround, but I realize it is not the proper way to do things.
Any ideas how I could let
rbenv, as I needed to decouple the dependencies for Redmine from system packages.Things work fine in rc.local, but I wanted to do them in a proper way, and write a custom rc.d script. For reference this is the working command:
Code:
cd /srv/redmine && PATH=/usr/local/bin:$PATH /root/.rbenv/shims/bundle exec rails server webrick -d -b 192.168.7.2 -e production
I just started to write the script, so it is still WIP. However, at the current stage I have issues with getting
rbenv to find bash. I tried to add /usr/local/bin to PATH from within the script, but this does not work. Whenever I try to start it, I get the message env: bash: No such file or directory (resulting from the shebang in the rbenv script).When I run the rc.d script with
sh -x it works fine.Right now I just symlinked bash to /usr/bin/bash which is a viable workaround, but I realize it is not the proper way to do things.
Any ideas how I could let
rbenv find bash in /usr/local/bin from the rc.d script?