mkdir /var/www/data/stats
chmod 777 /var/www/data/stats
+mkdir /var/www/data/logs
+chmod 777 /var/www/data/logs
if [ ! -f /fs/config/dropbear.tar ]
then
if [ -d /var/www/data ]
then
- /opt/reboot_daemon.sh > /tmp/reboot_daemon 2>&1 &
- /opt/restart_ssh_daemon.sh > /tmp/restart_ssh_daemon 2>&1 &
- /opt/stats_daemon.sh > /tmp/stats_daemon 2>&1 &
+ /opt/reboot_daemon.sh > /var/www/data/logs/reboot_daemon 2>&1 &
+ /opt/restart_ssh_daemon.sh > /var/www/data/logs/restart_ssh_daemon 2>&1 &
+ /opt/stats_daemon.sh > /var/www/data/logs/stats_daemon 2>&1 &
fi