Skip to content

Commit e1d36df

Browse files
committed
Merge pull request #7 from Engerim/master
Update init.d template for redhat distribution
2 parents e8e1814 + a0c5cb3 commit e1d36df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: templates/etc/init/mailcatcher.sysv.erb

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
PID=""
1212

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

1717
start(){
@@ -20,7 +20,7 @@ start(){
2020
echo "Mailcatcher is already running."
2121
exit 1
2222
else
23-
/usr/bin/mailcatcher <%= @options.join(' ') %>
23+
<%= @mailcatcher_path %>/mailcatcher <%= @options.join(' ') %>
2424
fi
2525
}
2626

0 commit comments

Comments
 (0)