#!/bin/sh

echo Mazu nohup...
rm /a/bin/nohup.out -f
rm /root/nohup.out -f

echo Mazu logy...
rm /a/log/share.log -f

echo Loguj start...
date >> /a/log/boot.log

echo Spoustim kontrolu online pocitacu...
/a/bin/netwatch.sh&

echo Spoustim mereni meteostanice...
/a/bin/meteo.sh&

echo Spoustim zaznam statistik...
/a/bin/monitor.sh&

#echo Spoustim DNS server...
#/a/bin/named.sh >/a/log/named.log OC2>/a/log/named.err&

echo Restartovani nastaveni...
/a/bin/config_restarter.sh >/a/log/config_restarter.log 2>/a/log/config_restarter.err&

echo Refresh webkamery...
mount -t tmpfs -o size=100m tmpfs /a/www/zdechovnet/images/webcam
/a/bin/webcam1.sh >/a/log/webcam1.log 2>/a/log/webcam1.err&
/a/bin/webcam2.sh >/a/log/webcam2.log 2>/a/log/webcam2.err&
/a/bin/webcam3.sh >/a/log/webcam3.log 2>/a/log/webcam3.err&
/a/bin/webcam4.sh >/a/log/webcam4.log 2>/a/log/webcam4.err&

echo Import aktualit...
/a/bin/import_news.sh >/a/log/import_news.log 2>/a/log/import_news.err&

#echo NetFlow...
#/a/bin/net-flow.sh >/a/log/net-flow.log 2>/a/log/net-flow.err&

#echo OpenERP server...
#/a/bin/openerp-server.sh >/a/log/openerp-server.log 2>/a/log/openerp-server.err&

#echo OpenERP web client...
#/a/bin/openerp-web.sh >/a/log/openerp-web.log 2>/a/log/openerp-web.err&
