- Timestamp:
- May 26, 2013, 10:23:53 PM (12 years ago)
- Location:
- bin
- Files:
-
- 40 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
bin/backup_db.sh
r200 r539 1 1 #!/bin/sh 2 2 3 . config.sh 3 . ./config.sh 4 5 echo ${DB_BACKUP_DIR} 4 6 5 7 echo Zaloha databaze... … … 26 28 unlink ${DB_NAME}.sql 27 29 30 DB_NAME=www 31 echo ${DB_NAME} 32 mysqldump --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} > ${DB_NAME}.sql 33 tar -c -z ${DB_NAME}.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz 34 unlink ${DB_NAME}.sql 35 36 DB_NAME=jirihajda 37 echo ${DB_NAME} 38 mysqldump --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} > ${DB_NAME}.sql 39 tar -c -z ${DB_NAME}.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz 40 unlink ${DB_NAME}.sql 41 42 DB_NAME=sunrisechat 43 echo ${DB_NAME} 44 mysqldump --user=${DB_USER} --password=${DB_PASSWORD} ${DB_NAME} > ${DB_NAME}.sql 45 tar -c -z ${DB_NAME}.sql > ${DB_BACKUP_DIR}${DB_NAME}/${DB_NAME}_$(date +"%Y-%m-%d").tar.gz 46 unlink ${DB_NAME}.sql 47 28 48 rmdir /tmp/backup 29 49 -
bin/import_news.sh
r200 r539 2 2 cd /a/www/centrala/aktuality 3 3 4 while [ 1=1 ]; do5 6 4 /usr/bin/php -q import_zdechov_cz_aktuality.php 7 5 /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 1 1 #!/bin/bash 2 cd /a/www/centrala/system/statistic/measure_scripts 3 /usr/bin/php -q monitor.php 2 screen -A -m -d -S monitor /a/bin/monitor2.sh 3 -
bin/netwatch.sh
r200 r539 1 1 #!/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 2 screen -A -m -d -S netwatch /a/bin/netwatch2.sh 3 -
bin/start.sh
r200 r539 1 1 #!/bin/sh 2 3 echo Nastavuji restart po kernel panic4 echo 1 > /proc/sys/kernel/panic5 6 #echo Nacitam pravidla firewallu...7 #iptables-restore /etc/sysconfig/iptables8 2 9 3 echo Mazu nohup... … … 17 11 date >> /a/log/boot.log 18 12 19 echo Zapinam numlock...20 /a/bin/n umlock.sh&13 echo Spoustim kontrolu online pocitacu... 14 /a/bin/netwatch.sh& 21 15 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& 16 echo Spoustim mereni meteostanice... 17 /a/bin/meteo.sh& 30 18 31 19 echo 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& 39 21 40 22 #echo Spoustim DNS server... 41 23 #/a/bin/named.sh >/a/log/named.log OC2>/a/log/named.err& 42 24 43 #echo Spoustim VPN...44 #/usr/local/bin/vpn.sh >/a/log/vpn.log 2>/a/log/vpn.err&45 46 #echo Spoustim ReqTrans Server47 #/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 3063 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 73 25 echo Restartovani nastaveni... 74 26 /a/bin/config_restarter.sh >/a/log/config_restarter.log 2>/a/log/config_restarter.err& 75 27 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 85 28 echo Refresh webkamery... 86 /a/bin/webcam.sh >/a/log/webcam.log 2>/a/log/webcam.err& 29 mount -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& 87 34 88 35 echo Import aktualit... 89 36 /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.