Skip to content

Commit

Permalink
use exec so that spawned child processes receive the right terminatio…
Browse files Browse the repository at this point in the history
…n signal
  • Loading branch information
nudded committed Dec 11, 2024
1 parent 14fcc86 commit dbb5bdd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion scripts/start.api.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

rm -f ./tmp/pids/server.pid
bundle exec rails s -b ::
exec bundle exec rails s -b ::
2 changes: 1 addition & 1 deletion scripts/start.billing.worker.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

bundle exec sidekiq -C config/sidekiq/sidekiq_billing.yml
exec bundle exec sidekiq -C config/sidekiq/sidekiq_billing.yml
2 changes: 1 addition & 1 deletion scripts/start.clock.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

bundle exec clockwork ./clock.rb
exec bundle exec clockwork ./clock.rb
2 changes: 1 addition & 1 deletion scripts/start.events.worker.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

bundle exec sidekiq -C config/sidekiq/sidekiq_events.yml
exec bundle exec sidekiq -C config/sidekiq/sidekiq_events.yml
2 changes: 1 addition & 1 deletion scripts/start.pdfs.worker.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

bundle exec sidekiq -C config/sidekiq/sidekiq_pdfs.yml
exec bundle exec sidekiq -C config/sidekiq/sidekiq_pdfs.yml
2 changes: 1 addition & 1 deletion scripts/start.worker.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

bundle exec sidekiq -C config/sidekiq/sidekiq.yml
exec bundle exec sidekiq -C config/sidekiq/sidekiq.yml

0 comments on commit dbb5bdd

Please sign in to comment.