Changeset 539 for bin


Ignore:
Timestamp:
May 26, 2013, 10:23:53 PM (12 years ago)
Author:
chronos
Message:
  • Aktualizace skriptů
Location:
bin
Files:
40 added
5 edited

Legend:

Unmodified
Added
Removed
  • bin/backup_db.sh

    r200 r539  
    11#!/bin/sh
    22
    3 . config.sh
     3. ./config.sh
     4
     5echo ${DB_BACKUP_DIR}
    46
    57echo Zaloha databaze...
     
    2628unlink ${DB_NAME}.sql
    2729
     30DB_NAME=www
     31echo ${DB_NAME}
     32mysqldump --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} > ${DB_NAME}.sql
     33tar -c -z ${DB_NAME}.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz
     34unlink ${DB_NAME}.sql
     35
     36DB_NAME=jirihajda
     37echo ${DB_NAME}
     38mysqldump --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} > ${DB_NAME}.sql
     39tar -c -z ${DB_NAME}.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz
     40unlink ${DB_NAME}.sql
     41
     42DB_NAME=sunrisechat
     43echo ${DB_NAME}
     44mysqldump --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} > ${DB_NAME}.sql
     45tar -c -z ${DB_NAME}.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz
     46unlink ${DB_NAME}.sql
     47
    2848rmdir /tmp/backup
    2949
  • bin/import_news.sh

    r200 r539  
    22cd /a/www/centrala/aktuality
    33
    4 while [ 1=1 ]; do
    5 
    64/usr/bin/php -q import_zdechov_cz_aktuality.php
    75/usr/bin/php -q import_zdechov_cz_zapisy.php
    8 sleep 3600
    9 
    10 done
     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
  • bin/monitor.sh

    r200 r539  
    11#!/bin/bash
    2 cd /a/www/centrala/system/statistic/measure_scripts
    3 /usr/bin/php -q monitor.php
     2screen -A -m -d -S monitor /a/bin/monitor2.sh
     3
  • bin/netwatch.sh

    r200 r539  
    11#!/bin/bash
    2 cd /a/www/centrala/system
    3 while [ 1=1 ]; do
    4 /usr/bin/php -q netwatch_import.php&
    5 sleep 60
    6 done
     2screen -A -m -d -S netwatch /a/bin/netwatch2.sh
     3
  • bin/start.sh

    r200 r539  
    11#!/bin/sh
    2 
    3 echo Nastavuji restart po kernel panic
    4 echo 1 > /proc/sys/kernel/panic
    5 
    6 #echo Nacitam pravidla firewallu...
    7 #iptables-restore /etc/sysconfig/iptables
    82
    93echo Mazu nohup...
     
    1711date >> /a/log/boot.log
    1812
    19 echo Zapinam numlock...
    20 /a/bin/numlock.sh&
     13echo Spoustim kontrolu online pocitacu...
     14/a/bin/netwatch.sh&
    2115
    22 #echo Spoustim pripojeni k internetu
    23 #/usr/local/bin/cdma_log.sh>/a/log/cdma_log.log 2>/a/log/cdma_log.err&
    24 
    25 #echo Vypinam zalozni disk...
    26 #/sbin/hdparm -y /dev/hdc
    27 
    28 echo Spoustim kontrolu online pocitacu...
    29 /a/bin/netwatch.sh>/a/log/netwatch.log 2>/a/log/netwatch.err&
     16echo Spoustim mereni meteostanice...
     17/a/bin/meteo.sh&
    3018
    3119echo Spoustim zaznam statistik...
    32 /a/bin/monitor.sh >/a/log/monitor.log 2>/a/log/monitor.err&
    33 
    34 echo Spoustim kontrolu zatizeni internetu...
    35 /a/bin/bandwidth.sh >/a/log/bandwidth.log 2>/a/log/bandwidth.err&
    36 
    37 echo Spoustim NAT...
    38 /a/bin/nat.sh
     20/a/bin/monitor.sh&
    3921
    4022#echo Spoustim DNS server...
    4123#/a/bin/named.sh >/a/log/named.log OC2>/a/log/named.err&
    4224
    43 #echo Spoustim VPN...
    44 #/usr/local/bin/vpn.sh >/a/log/vpn.log 2>/a/log/vpn.err&
    45 
    46 #echo Spoustim ReqTrans Server
    47 #/usr/bin/php -q /var/www/html/rqtserver.php >>/a/log/reqtrans.log 2>/a/log/reqtrans.err&
    48 
    49 #echo Spoustim Sunrisechat database updater...
    50 #/usr/local/bin/chat.sh >/a/log/chat.log 2>/a/log/chat.err&
    51 
    52 #echo Spoustim UDP broadcast forwarder...
    53 #/usr/local/bin/udp_forwarder.sh 2>/a/log/udp_forwarder.err&
    54 
    55 #echo Spoustim mereni teploty...
    56 #/a/bin/temperature>/a/log/temperature.log&
    57 
    58 #echo Spoustim VMWare Workstation s Windows 2003 Server..
    59 #su vmware -c /usr/local/bin/vmware.sh >/a/log/vmware.log 2>/a/log/vmware.err&
    60 
    61 #echo Cekam 30 sekund...
    62 #sleep 30
    63 
    64 #echo Startuji bezdratove pripojeni...
    65 #/usr/local/bin/wlan.sh&
    66 
    67 echo Startuji traffic shaping...
    68 /a/bin/traffic_shaping.sh >/a/log/traffic_shaping.log 2>/a/log/traffic_shaping.err&
    69 
    70 #echo Zaznam existujicich MAC adres...
    71 #/usr/bin/php /a/sys/statistic/known_mac.php >/a/log/known_mac.log 2>/a/log/known_mac.err&
    72 
    7325echo Restartovani nastaveni...
    7426/a/bin/config_restarter.sh >/a/log/config_restarter.log 2>/a/log/config_restarter.err&
    7527
    76 #echo Zaznam sitovych pripojeni...
    77 #/usr/bin/php /a/sys/statistic/connections.php >/a/log/connections.log 2>/a/log/connections.err&
    78 
    79 echo Cyklicke pingovani nixu...
    80 /a/bin/ping_nix.sh&
    81 
    82 echo Pridavam smerovaci informace...
    83 /a/bin/route.sh >/a/log/route.log 2>/a/log/route.err&
    84 
    8528echo Refresh webkamery...
    86 /a/bin/webcam.sh >/a/log/webcam.log 2>/a/log/webcam.err&
     29mount -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&
    8734
    8835echo Import aktualit...
    8936/a/bin/import_news.sh >/a/log/import_news.log 2>/a/log/import_news.err&
     37
     38#echo NetFlow...
     39#/a/bin/net-flow.sh >/a/log/net-flow.log 2>/a/log/net-flow.err&
     40
     41#echo OpenERP server...
     42#/a/bin/openerp-server.sh >/a/log/openerp-server.log 2>/a/log/openerp-server.err&
     43
     44#echo OpenERP web client...
     45#/a/bin/openerp-web.sh >/a/log/openerp-web.log 2>/a/log/openerp-web.err&
Note: See TracChangeset for help on using the changeset viewer.