Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
thinking-sphinx-monit
Advanced tools
Monit integration with Thinking Sphinx and CapistranoV3
Add this line to your application's Gemfile:
gem 'thinking-sphinx-monit'
And then execute:
$ bundle install
Add to your capfile following line:
# Capfile
require 'thinking_sphinx_monit/capistrano'
Before any other action please first deploy your app to server (needed for all stages which you want to use):
cap <stage> deploy
Then you can specify thinking sphinx hooks in your deploy.rb, for example like this:
before 'deploy:updating', 'thinking_sphinx:stop'
after 'deploy:published', 'thinking_sphinx:start'
after 'thinking_sphinx:start', 'thinking_sphinx:index'
That's because monit is started and stopped before and after thinking_sphinx stop/start:
before 'thinking_sphinx:stop', 'thinking_sphinx_monit:unmonitor'
after 'thinking_sphinx:start', 'thinking_sphinx_monit:monitor'
Of course you can do everything manually:
cap thinking_sphinx_monit:config # Generates Thinking Sphinx monit-service
cap thinking_sphinx_monit:monitor # Monitor Thinking Sphinx monit-service
cap thinking_sphinx_monit:restart # Restart Thinking Sphinx monit-service
cap thinking_sphinx_monit:start # Start Thinking Sphinx monit-service
cap thinking_sphinx_monit:stop # Stop Thinking Sphinx monit-service
cap thinking_sphinx_monit:unmonitor # Unmonitor Thinking Sphinx monit-service
set :thinking_sphinx_monit_conf_dir, -> { "/etc/monit/conf.d/#{ts_monit_service_name}.conf" }
set :thinking_sphinx_use_sudo, true
set :thinking_sphinx_monit_bin, '/usr/bin/monit'
If you need change config for Monit, you can:
bundle exec rails generate thinking_sphinx_monit:template
and edit template in your config/deploy/templates folder.
Feel free to contribute.
FAQs
Unknown package
We found that thinking-sphinx-monit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.