Changeset 775 for bin


Ignore:
Timestamp:
Jan 2, 2016, 11:35:04 AM (9 years ago)
Author:
chronos
Message:
  • Updated bash scripts.
Location:
bin
Files:
8 added
29 deleted
9 edited

Legend:

Unmodified
Added
Removed
  • bin/backup_svn_db.sh

    r539 r775  
    33. ./config.sh
    44
    5 BACKUP_DIR=/a/backup/svn/work
     5BACKUP_DIR=/root/backup/svn/work
    66
    77echo Zaloha databaze...
  • bin/config_restarter.sh

    r1 r775  
    11#!/bin/bash
    22while [ 1=1 ]; do
    3 /a/bin/generate.sh
     3/root/bin/generate.sh
    44sleep 5
    55done
  • bin/generate.sh

    r200 r775  
    11#!/bin/bash
    2 cd /a/www/centrala/system/generators
    3 php generate.php
     2cd /a/www/centrala/Modules/NetworkConfig
     3php Generate.php
  • bin/import_news.sh

    r539 r775  
    11#!/bin/bash
    2 cd /a/www/centrala/aktuality
     2cd /a/www/centrala/Modules/News
    33
    4 /usr/bin/php -q import_zdechov_cz_aktuality.php
    5 /usr/bin/php -q import_zdechov_cz_zapisy.php
    6 /usr/bin/php -q import_tv_beskyd.php
    7 /usr/bin/php -q import_kino_vatra.php
    8 /usr/bin/php -q import_obec_hovezi.php
     4/usr/bin/php -q ImportZdechovCzNews.php
     5/usr/bin/php -q ImportZdechovCzRecords.php
     6#/usr/bin/php -q import_tv_beskyd.php
     7#/usr/bin/php -q ImportKinoVatra.php
     8/usr/bin/php -q ImportObecHovezi.php
  • bin/monitor.sh

    r539 r775  
    11#!/bin/bash
    2 screen -A -m -d -S monitor /a/bin/monitor2.sh
     2screen -A -m -d -S monitor /root/bin/monitor2.sh
    33
  • bin/monitor2.sh

    r539 r775  
    44#do
    55
    6 cd /a/www/centrala/system/statistic/measure_scripts
    7 /usr/bin/php -q monitor.php >/a/log/monitor.log 2>/a/log/monitor.err
     6cd /a/www/statistic/measure_scripts
     7/usr/bin/php -q monitor.php >/root/log/monitor.log 2>/root/log/monitor.err
    88
    99#sleep 60
  • bin/netwatch.sh

    r539 r775  
    11#!/bin/bash
    2 screen -A -m -d -S netwatch /a/bin/netwatch2.sh
     2screen -A -m -d -S netwatch /root/bin/netwatch2.sh
    33
  • bin/netwatch2.sh

    r539 r775  
    11#!/bin/bash
    2 cd /a/www/centrala/system/generators
     2cd /a/www/centrala/Modules/NetworkConfigRouterOS/Generators
    33#while [ 1=1 ]; do
    4 /usr/bin/php -q netwatch_import.php>/a/log/netwatch.log 2>/a/log/netwatch.err
     4/usr/bin/php -q NetwatchImport.php>/root/log/netwatch.log 2>/root/log/netwatch.err
    55#sleep 60
    66#done
  • bin/start.sh

    r539 r775  
    22
    33echo Mazu nohup...
    4 rm /a/bin/nohup.out -f
     4rm /root/bin/nohup.out -f
    55rm /root/nohup.out -f
    66
    77echo Mazu logy...
    8 rm /a/log/share.log -f
     8rm /root/log/share.log -f
    99
    1010echo Loguj start...
    11 date >> /a/log/boot.log
     11date >> /root/log/boot.log
    1212
    1313echo Spoustim kontrolu online pocitacu...
    14 /a/bin/netwatch.sh&
     14/root/bin/netwatch.sh&
     15
     16echo Spoustim kontrolu stavu signalu zarizeni...
     17/root/bin/signal.sh&
    1518
    1619echo Spoustim mereni meteostanice...
    17 /a/bin/meteo.sh&
     20/root/bin/meteo.sh&
    1821
    1922echo Spoustim zaznam statistik...
    20 /a/bin/monitor.sh&
     23/root/bin/monitor.sh&
     24
     25echo Centrala scheduler...
     26/root/bin/scheduler.sh&
    2127
    2228#echo Spoustim DNS server...
    23 #/a/bin/named.sh >/a/log/named.log OC2>/a/log/named.err&
     29#/root/bin/named.sh >/root/log/named.log OC2>/root/log/named.err&
    2430
    2531echo Restartovani nastaveni...
    26 /a/bin/config_restarter.sh >/a/log/config_restarter.log 2>/a/log/config_restarter.err&
     32/root/bin/config_restarter.sh >/root/log/config_restarter.log 2>/root/log/config_restarter.err&
    2733
    2834echo Refresh webkamery...
    2935mount -t tmpfs -o size=100m tmpfs /a/www/zdechovnet/images/webcam
    30 /a/bin/webcam1.sh >/a/log/webcam1.log 2>/a/log/webcam1.err&
    31 /a/bin/webcam2.sh >/a/log/webcam2.log 2>/a/log/webcam2.err&
    32 /a/bin/webcam3.sh >/a/log/webcam3.log 2>/a/log/webcam3.err&
    33 /a/bin/webcam4.sh >/a/log/webcam4.log 2>/a/log/webcam4.err&
     36/root/bin/webcam1.sh >/root/log/webcam1.log 2>/root/log/webcam1.err&
     37/root/bin/webcam2.sh >/root/log/webcam2.log 2>/root/log/webcam2.err&
     38/root/bin/webcam3.sh >/root/log/webcam3.log 2>/root/log/webcam3.err&
     39/root/bin/webcam4.sh >/root/log/webcam4.log 2>/root/log/webcam4.err&
     40/root/bin/webcam5.sh >/root/log/webcam5.log 2>/root/log/webcam5.err&
    3441
    3542echo Import aktualit...
    36 /a/bin/import_news.sh >/a/log/import_news.log 2>/a/log/import_news.err&
     43/root/bin/import_news.sh >/root/log/import_news.log 2>/root/log/import_news.err&
     44
    3745
    3846#echo NetFlow...
    39 #/a/bin/net-flow.sh >/a/log/net-flow.log 2>/a/log/net-flow.err&
     47#/root/bin/net-flow.sh >/root/log/net-flow.log 2>/root/log/net-flow.err&
    4048
    4149#echo OpenERP server...
    42 #/a/bin/openerp-server.sh >/a/log/openerp-server.log 2>/a/log/openerp-server.err&
     50#/root/bin/openerp-server.sh >/root/log/openerp-server.log 2>/root/log/openerp-server.err&
    4351
    4452#echo OpenERP web client...
    45 #/a/bin/openerp-web.sh >/a/log/openerp-web.log 2>/a/log/openerp-web.err&
     53#/root/bin/openerp-web.sh >/root/log/openerp-web.log 2>/root/log/openerp-web.err&
Note: See TracChangeset for help on using the changeset viewer.