Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e2038ecac | |||
| 75e41eafc4 | |||
| 73b9d05357 |
+1
-1
@@ -6,6 +6,6 @@ start moving functionality into the package.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
__all__ = ["main", "__version__"]
|
__all__ = ["main", "__version__"]
|
||||||
__version__ = "5.0.4"
|
__version__ = "5.0.5"
|
||||||
|
|
||||||
from .cli import main
|
from .cli import main
|
||||||
|
|||||||
+1
-1
@@ -489,7 +489,7 @@ def build_parser():
|
|||||||
"-n", "--name", dest="name", help="Name to use in heartbeat message"
|
"-n", "--name", dest="name", help="Name to use in heartbeat message"
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-f", "--daemon", action="store_true", help="Run in daemon mode"
|
"-d", "--daemon", action="store_true", help="Run in daemon mode"
|
||||||
)
|
)
|
||||||
parser.add_argument("-v", "--verbose", action="store_true", help="Verbose output")
|
parser.add_argument("-v", "--verbose", action="store_true", help="Verbose output")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|||||||
@@ -131,13 +131,6 @@ async def start(
|
|||||||
out.append(f"update started for {n}: {err if err else 'OK'}")
|
out.append(f"update started for {n}: {err if err else 'OK'}")
|
||||||
return web.Response(text="\n".join(out))
|
return web.Response(text="\n".join(out))
|
||||||
|
|
||||||
async def restart(request):
|
|
||||||
# signal main application to perform restart if needed
|
|
||||||
# not implemented here - return OK
|
|
||||||
if log:
|
|
||||||
log(None, "restart request")
|
|
||||||
return web.Response(text="restart request")
|
|
||||||
|
|
||||||
async def live(request):
|
async def live(request):
|
||||||
# render template from hbd/templates/live.html using Jinja2
|
# render template from hbd/templates/live.html using Jinja2
|
||||||
# Resolve templates directory relative to the hbd package
|
# Resolve templates directory relative to the hbd package
|
||||||
@@ -200,7 +193,6 @@ async def start(
|
|||||||
web.get("/d", drop),
|
web.get("/d", drop),
|
||||||
web.get("/n", register),
|
web.get("/n", register),
|
||||||
web.get("/u", update),
|
web.get("/u", update),
|
||||||
web.get("/r", restart),
|
|
||||||
web.get("/live", live),
|
web.get("/live", live),
|
||||||
web.get("/static/{path:.*}", static),
|
web.get("/static/{path:.*}", static),
|
||||||
web.get("/favicon.ico", favicon),
|
web.get("/favicon.ico", favicon),
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "hbd"
|
name = "hbd"
|
||||||
version = "5.0.4"
|
version = "5.0.5"
|
||||||
description = "Heartbeat daemon (hbd) — receive heartbeats and act on them"
|
description = "Heartbeat daemon (hbd) — receive heartbeats and act on them"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.11"
|
requires-python = ">=3.11"
|
||||||
|
|||||||
Reference in New Issue
Block a user