BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
df67b25b
Commit
df67b25b
authored
May 28, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init.d: Ensure socket is removed before starting service
parent
1ed92561
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
gitlab
lib/support/init.d/gitlab
+3
-1
No files found.
lib/support/init.d/gitlab
View file @
df67b25b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
# GITLAB
# GITLAB
# Maintainer: @randx
# Maintainer: @randx
# App Version: 5.
1
# App Version: 5.
2
### BEGIN INIT INFO
### BEGIN INIT INFO
# Provides: gitlab
# Provides: gitlab
...
@@ -19,6 +19,7 @@ APP_ROOT="/home/git/gitlab"
...
@@ -19,6 +19,7 @@ APP_ROOT="/home/git/gitlab"
APP_USER
=
"git"
APP_USER
=
"git"
DAEMON_OPTS
=
"-C
$APP_ROOT
/config/puma.rb"
DAEMON_OPTS
=
"-C
$APP_ROOT
/config/puma.rb"
PID_PATH
=
"
$APP_ROOT
/tmp/pids"
PID_PATH
=
"
$APP_ROOT
/tmp/pids"
SOCKET_PATH
=
"
$APP_ROOT
/tmp/sockets"
WEB_SERVER_PID
=
"
$PID_PATH
/puma.pid"
WEB_SERVER_PID
=
"
$PID_PATH
/puma.pid"
SIDEKIQ_PID
=
"
$PID_PATH
/sidekiq.pid"
SIDEKIQ_PID
=
"
$PID_PATH
/sidekiq.pid"
STOP_SIDEKIQ
=
"RAILS_ENV=production bundle exec rake sidekiq:stop"
STOP_SIDEKIQ
=
"RAILS_ENV=production bundle exec rake sidekiq:stop"
...
@@ -50,6 +51,7 @@ start() {
...
@@ -50,6 +51,7 @@ start() {
exit
1
exit
1
else
else
if
[
`
whoami
`
=
root
]
;
then
if
[
`
whoami
`
=
root
]
;
then
execute
"rm
$SOCKET_PATH
/gitlab.socket"
execute
"RAILS_ENV=production bundle exec puma
$DAEMON_OPTS
"
execute
"RAILS_ENV=production bundle exec puma
$DAEMON_OPTS
"
execute
"mkdir -p
$PID_PATH
&&
$START_SIDEKIQ
> /dev/null 2>&1 &"
execute
"mkdir -p
$PID_PATH
&&
$START_SIDEKIQ
> /dev/null 2>&1 &"
echo
"
$DESC
started"
echo
"
$DESC
started"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment