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
Boxiang Sun
gitlab-ce
Commits
c50e5e68
Commit
c50e5e68
authored
Aug 19, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bin/mail_room.
parent
34026c97
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
bin/mail_room
bin/mail_room
+9
-8
No files found.
bin/mail_room
View file @
c50e5e68
...
@@ -4,6 +4,7 @@ cd $(dirname $0)/..
...
@@ -4,6 +4,7 @@ cd $(dirname $0)/..
app_root
=
$(
pwd
)
app_root
=
$(
pwd
)
mail_room_pidfile
=
"
$app_root
/tmp/pids/mail_room.pid"
mail_room_pidfile
=
"
$app_root
/tmp/pids/mail_room.pid"
mail_room_logfile
=
"
$app_root
/log/mail_room.log"
mail_room_config
=
"
$app_root
/config/mail_room.yml"
mail_room_config
=
"
$app_root
/config/mail_room.yml"
get_mail_room_pid
()
get_mail_room_pid
()
...
@@ -18,7 +19,7 @@ get_mail_room_pid()
...
@@ -18,7 +19,7 @@ get_mail_room_pid()
start
()
start
()
{
{
bundle
exec
mail_room
-q
-c
$mail_room_config
bundle
exec
mail_room
-q
-c
$mail_room_config
>>
$mail_room_logfile
2>&1 &
PID
=
$!
PID
=
$!
echo
$PID
>
$mail_room_pidfile
echo
$PID
>
$mail_room_pidfile
}
}
...
@@ -26,13 +27,13 @@ start()
...
@@ -26,13 +27,13 @@ start()
stop
()
stop
()
{
{
get_mail_room_pid
get_mail_room_pid
kill
-
QUIT
$mail_room_pid
kill
-
TERM
$mail_room_pid
}
}
re
load
()
re
start
()
{
{
get_mail_room_pid
stop
kill
-USR2
$mail_room_pid
start
}
}
case
"
$1
"
in
case
"
$1
"
in
...
@@ -42,10 +43,10 @@ case "$1" in
...
@@ -42,10 +43,10 @@ case "$1" in
stop
)
stop
)
stop
stop
;;
;;
re
load
)
re
start
)
re
load
re
start
;;
;;
*
)
*
)
echo
"Usage:
$0
{start|stop|re
load
}"
echo
"Usage:
$0
{start|stop|re
start
}"
;;
;;
esac
esac
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