update
This commit is contained in:
parent
ae6a600ca7
commit
1882688652
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
sudo crontab -l > cron.cron
|
sudo crontab -l > cron.cron
|
||||||
echo "*/1 * * * * /usr/bin/bash /home/pi/lot_manager/conf/example/bash/start_dataupload_internal_one_hour.sh" >> cron.cron
|
echo "* */1 * * * /usr/bin/bash /home/pi/lot_manager/conf/example/bash/start_dataupload_internal_one_hour.sh" >> cron.cron
|
||||||
sudo crontab cron.cron
|
sudo crontab cron.cron
|
||||||
sudo systemctl restart cron.service
|
sudo systemctl restart cron.service
|
||||||
sudo rm -rf cron.cron
|
sudo rm -rf cron.cron
|
|
@ -46,7 +46,7 @@ user_sched = {}
|
||||||
|
|
||||||
async def close(username, device):
|
async def close(username, device):
|
||||||
# 倒计时600秒
|
# 倒计时600秒
|
||||||
await asyncio.sleep(5)
|
await asyncio.sleep(30)
|
||||||
print(username + "结束推流")
|
print(username + "结束推流")
|
||||||
user_sched.pop(username)
|
user_sched.pop(username)
|
||||||
close_stream(username, device)
|
close_stream(username, device)
|
||||||
|
|
Loading…
Reference in New Issue