We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e8e1814 + a0c5cb3 commit e1d36dfCopy full SHA for e1d36df
templates/etc/init/mailcatcher.sysv.erb
@@ -11,7 +11,7 @@
11
PID=""
12
13
updatepid(){
14
- 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}')
15
}
16
17
start(){
@@ -20,7 +20,7 @@ start(){
20
echo "Mailcatcher is already running."
21
exit 1
22
else
23
- /usr/bin/mailcatcher <%= @options.join(' ') %>
+ <%= @mailcatcher_path %>/mailcatcher <%= @options.join(' ') %>
24
fi
25
26
0 commit comments