Merge pull request #45 from cubedro/develop

Fixed time update cron
This commit is contained in:
Marian OANCΞA 2015-04-04 02:03:35 +03:00
commit 7913ff4bce
2 changed files with 37 additions and 36 deletions

View File

@ -46,11 +46,11 @@ sudo npm install pm2 -g
[[ ! -f ~/bin/processes.json ]] && cp -b ./processes.json ./.. [[ ! -f ~/bin/processes.json ]] && cp -b ./processes.json ./..
# set up time update cronjob # set up time update cronjob
cat > /etc/cron.hourly/ntpdate << EOF sudo bash -c "cat > /etc/cron.hourly/ntpdate << EOF
#!/bin/sh #!/bin/sh
sudo service ntp stop sudo service ntp stop
sudo ntpdate -s ntp.ubuntu.com sudo ntpdate -s ntp.ubuntu.com
sudo service ntp start sudo service ntp start
EOF EOF"
sudo chmod 755 /etc/cron.hourly/ntpdate sudo chmod 755 /etc/cron.hourly/ntpdate

View File

@ -1,36 +1,37 @@
[ [
{ {
"name" : "eth", "name" : "eth",
"cwd" : "~/bin/www/", "cwd" : "~/bin/www/",
"script" : "bin/eth.sh", "script" : "bin/eth.sh",
"log_date_format" : "YYYY-MM-DD HH:mm Z", "log_date_format" : "YYYY-MM-DD HH:mm Z",
"log_file" : "~/logs/eth-log.log", "log_file" : "~/logs/eth-log.log",
"out_file" : "~/logs/eth-out.log", "out_file" : "~/logs/eth-out.log",
"error_file" : "~/logs/eth-err.log", "error_file" : "~/logs/eth-err.log",
"merge_logs" : false, "merge_logs" : false,
"watch" : false, "watch" : false,
"exec_interpreter" : "bash", "exec_interpreter" : "bash",
"exec_mode" : "fork_mode" "exec_mode" : "fork_mode"
}, },
{ {
"name" : "node-app", "name" : "node-app",
"cwd" : "~/bin/www/", "cwd" : "~/bin/www/",
"script" : "app.js", "script" : "app.js",
"log_file" : "~/logs/node-app-log.log", "log_date_format" : "YYYY-MM-DD HH:mm Z",
"out_file" : "~/logs/node-app-out.log", "log_file" : "~/logs/node-app-log.log",
"error_file" : "~/logs/node-app-err.log", "out_file" : "~/logs/node-app-out.log",
"merge_logs" : false, "error_file" : "~/logs/node-app-err.log",
"watch" : false, "merge_logs" : false,
"exec_interpreter" : "node", "watch" : false,
"exec_mode" : "fork_mode", "exec_interpreter" : "node",
"env": "exec_mode" : "fork_mode",
{ "env":
"NODE_ENV" : "production", {
"RPC_HOST" : "localhost", "NODE_ENV" : "production",
"RPC_PORT" : "8080", "RPC_HOST" : "localhost",
"INSTANCE_NAME" : "", "RPC_PORT" : "8080",
"WS_SERVER" : "wss://eth-netstats.herokuapp.com", "INSTANCE_NAME" : "",
"WS_SECRET" : "eth-net-stats-has-a-secret", "WS_SERVER" : "wss://eth-netstats.herokuapp.com",
} "WS_SECRET" : "eth-net-stats-has-a-secret",
} }
}
] ]