我使用本指南为用户 gitlab (rvm ruby python) 创建了 ruby 环境: http ://wiki.gentoo.org/wiki/GitLab
猫 /etc/init.d/gitlab
GITLAB_BASE=/home/gitlab/gitlab
GITLAB_USER=gitlab
depend() {
need net redis
}
start() {
ebegin "Starting gitlab unicorn server"
start-stop-daemon --start \
--chdir "${GITLAB_BASE}" \
--user "${GITLAB_USER}" \
--pidfile "${GITLAB_BASE}/tmp/pids/unicorn.pid" \
--exec bundle -- exec unicorn_rails -c "${GITLAB_BASE}/config/unicorn.rb" -E production -D
eend $?
ebegin "Starting gitlab sidekiq"
start-stop-daemon --start \
--chdir "${GITLAB_BASE}" \
--user "${GITLAB_USER}" \
--pidfile "${GITLAB_BASE}/tmp/pids/sidekiq.pid" \
--exec bundle -- exec rake sidekiq:start RAILS_ENV=production
eend $?
}
stop() {
ebegin "Stopping gitlab sidekiq"
start-stop-daemon --stop \
--chdir "${GITLAB_BASE}" \
--user "${GITLAB_USER}" \
--pidfile "${GITLAB_BASE}/tmp/pids/sidekiq.pid"
eend $?
ebegin "Stopping gitlab unicorn server"
start-stop-daemon --stop \
--chdir "${GITLAB_BASE}" \
--user "${GITLAB_USER}" \
--pidfile "${GITLAB_BASE}/tmp/pids/unicorn.pid"
eend $?
}%
当我开始它时,我看到:
* Starting gitlab unicorn server ...
* start-stop-daemon: bundle does not exist
* Starting gitlab sidekiq ...
* start-stop-daemon: bundle does not exist
* ERROR: gitlab failed to start
我有用户 gitlab 的捆绑包。我做错了什么?