added a cron mode. this will execute the script only once and then execute
This commit is contained in:
parent
f02eb4068e
commit
9776448c89
3 changed files with 5 additions and 1 deletions
2
uplink
2
uplink
|
|
@ -128,6 +128,8 @@ def run(config):
|
|||
# with daemon.DaemonContext():
|
||||
while True:
|
||||
get_data(config)
|
||||
if config["cron_mode"]:
|
||||
exit(0)
|
||||
time.sleep(config["interval"])
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue