我創造了紅寶石的環境使用本指南用戶gitlab(RVM紅寶石蟒蛇): http://wiki.gentoo.org/wiki/GitLab開始Gitlab用的init.d腳本(巴布亞)
貓/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捆綁。我做錯了什麼?