Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
df67b25b
Commit
df67b25b
authored
11 years ago
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init.d: Ensure socket is removed before starting service
parent
1ed92561
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lib/support/init.d/gitlab
lib/support/init.d/gitlab
+3
-1
No files found.
lib/support/init.d/gitlab
View file @
df67b25b
...
...
@@ -2,7 +2,7 @@
# GITLAB
# Maintainer: @randx
# App Version: 5.
1
# App Version: 5.
2
### BEGIN INIT INFO
# Provides: gitlab
...
...
@@ -19,6 +19,7 @@ APP_ROOT="/home/git/gitlab"
APP_USER
=
"git"
DAEMON_OPTS
=
"-C
$APP_ROOT
/config/puma.rb"
PID_PATH
=
"
$APP_ROOT
/tmp/pids"
SOCKET_PATH
=
"
$APP_ROOT
/tmp/sockets"
WEB_SERVER_PID
=
"
$PID_PATH
/puma.pid"
SIDEKIQ_PID
=
"
$PID_PATH
/sidekiq.pid"
STOP_SIDEKIQ
=
"RAILS_ENV=production bundle exec rake sidekiq:stop"
...
...
@@ -50,6 +51,7 @@ start() {
exit
1
else
if
[
`
whoami
`
=
root
]
;
then
execute
"rm
$SOCKET_PATH
/gitlab.socket"
execute
"RAILS_ENV=production bundle exec puma
$DAEMON_OPTS
"
execute
"mkdir -p
$PID_PATH
&&
$START_SIDEKIQ
> /dev/null 2>&1 &"
echo
"
$DESC
started"
...
...
This diff is collapsed.
Click to expand it.
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