biplobmanna / zrunner

zee runner to keep zrok services running on server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vot iz zrunner

its a python utility to manage the running zrok sessions to serve the websites. it is to ensure that the zrok sessions dont stop, and if they do, get them back up online.

although that is the usecase, this is more general purpose and can be used to keep any service running over time, and periodically check if they are running normally.

todo

  • project name
  • setup git
  • python check running services in os
  • create table in sqlite db for each service
  • read latest from table
  • insert row into table
  • execute a command in background
  • get pid and entry in table
  • query ps and find the command and get pid
  • stop the running service using pid
  • stop the running service using command after querying ps
  • needs extensive testing to see that pid + 1 is that of the executed command since pid belongs to the spawned shell
  • create a multi-core test to check this out
  • test each service to see if they're running
  • restart them if they need to be restarted
  • entry to db
  • check internet connectivity
  • forgo current execution if no internet, or sleep for 5 mins?
  • logging
  • tests
  • cron

About

zee runner to keep zrok services running on server


Languages

Language:Python 100.0%