sudo apt-get install monit
Unomment several lines in monitrc config:
sudo vim /etc/monit/monitrc
| sudo systemctl daemon-reload | |
| sudo systemctl enable exporter.timer | |
| sudo systemctl status exporter.timer | |
| sudo systemctl list-timers --all | |
| sudo systemctl list-timers | |
| sudo systemctl start exporter.service | |
| sudo systemctl start exporter.timer |
| sudo apt-get install mailutils | |
| crontab -e | |
| # And paste following line to crontab settings: | |
| @reboot echo "Server has restarted "`hostname` | mail -s "System Restart" [email protected] |
| Logger.configure do | |
| syslog.ident = File.dirname(__FILE__) + "/../../log/radium_backup" | |
| end |
| # | |
| # Define your upstream cluster | |
| # | |
| upstream rails { | |
| server 0.0.0.0:3000 fail_timeout=0; | |
| } | |
| server { | |
| listen 80; | |
| server_name your_app.dev; |
| require 'grape' | |
| class API < Grape::API | |
| before do | |
| @log_start_t = Time.now | |
| Rails.logger.info " Parameters: #{params.to_hash.except("route_info")}" | |
| end | |
| after do | |
| @log_end_t = Time.now |
| ls *.CR2 | parallel --will-cite --bar --jobs 8 ufraw-batch --out-type jpg --out-path jpg/ --overwrite |
| #!/bin/bash | |
| # This file applies all the git configs and hooks related to current repository | |
| # Run it from Rails.root directory this way: | |
| # ./dev/git/apply.sh | |
| cp -v dev/git/pre-commit .git/hooks/pre-commit | |
| cp -v dev/git/config .git/config |
| # File: /etc/postfix/header_checks | |
| # Add to the bottom of the file | |
| /To:.*[email protected].*/ FILTER send_to_my_app: |
| 1. Install Linux updates, set time zones, followed by GCC and Make | |
| sudo yum -y update | |
| sudo ln -sf /usr/share/zoneinfo/America/Indianapolis \ | |
| /etc/localtime | |
| sudo yum -y install gcc make | |
| 2. Download, Untar and Make Redis 2.8 (check here http://redis.io/download) |