sudo apt-get install monit
Unomment several lines in monitrc config:
sudo vim /etc/monit/monitrc
#include <stdio.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <sys/stat.h> | |
#include <sys/ioctl.h> | |
#include <string.h> | |
#include <unistd.h> | |
void print_help(char *prog_name) { | |
printf("Usage: %s [-n] DEVNAME COMMAND\n", prog_name); |
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) |
# File: /etc/postfix/header_checks | |
# Add to the bottom of the file | |
/To:.*support@myapp.com.*/ FILTER send_to_my_app: |
ls *.CR2 | parallel --will-cite --bar --jobs 8 ufraw-batch --out-type jpg --out-path jpg/ --overwrite |
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" example@example.com |
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; |
Download the box here: vagrantbox.es
When setting up process is finished check twice to have static predefined DNS server address
(8.8.8.8) in your developer machine network connection. Otherwise you will be unable to connect to the host via vagrant ssh
.