Skip to content

Commit

Permalink
Merge pull request #7 from Engerim/master
Browse files Browse the repository at this point in the history
Update init.d template for redhat distribution
  • Loading branch information
actionjack committed Jun 10, 2014
2 parents e8e1814 + a0c5cb3 commit e1d36df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/etc/init/mailcatcher.sysv.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
PID=""

updatepid(){
PID=$(ps aux|grep "ruby /usr/bin/[m]ailcatcher" |awk '{print $2}')
PID=$(ps aux|grep -E "ruby(-.*)* <%= @mailcatcher_path %>/[m]ailcatcher" |awk '{print $2}')
}

start(){
Expand All @@ -20,7 +20,7 @@ start(){
echo "Mailcatcher is already running."
exit 1
else
/usr/bin/mailcatcher <%= @options.join(' ') %>
<%= @mailcatcher_path %>/mailcatcher <%= @options.join(' ') %>
fi
}

Expand Down

0 comments on commit e1d36df

Please sign in to comment.