summaryrefslogtreecommitdiff
path: root/subplot/daemon.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-10-14 09:35:39 +0300
committerLars Wirzenius <liw@liw.fi>2020-10-14 09:35:39 +0300
commit739d624d6f60776a9baba905e23c818d23dc52e0 (patch)
tree55594594602a8a2647dc79b2d0eb0f528142a4f6 /subplot/daemon.py
parent8cc1a68d733762ad6baaec439360a84ab8450d3a (diff)
downloadewww-739d624d6f60776a9baba905e23c818d23dc52e0.tar.gz
chore: update subplot/runcmd.* from Subplot
Also fix everything that needs fixing. Tests pass.
Diffstat (limited to 'subplot/daemon.py')
-rw-r--r--subplot/daemon.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/subplot/daemon.py b/subplot/daemon.py
index c454b9b..00c9d2d 100644
--- a/subplot/daemon.py
+++ b/subplot/daemon.py
@@ -9,8 +9,8 @@ import signal
# Start a process in the background.
def start_daemon(ctx, name, argv):
- runcmd = globals()["runcmd"]
- exit_code_is = globals()["exit_code_is"]
+ runcmd_run = globals()["runcmd_run"]
+ runcmd_exit_code_is = globals()["runcmd_exit_code_is"]
logging.debug(f"Starting daemon {name}")
logging.debug(f" ctx={ctx.as_dict()}")
@@ -25,7 +25,7 @@ def start_daemon(ctx, name, argv):
"stderr": f"{name}.stderr",
"stdout": f"{name}.stdout",
}
- runcmd(
+ runcmd_run(
ctx,
[
"/usr/sbin/daemonize",
@@ -40,7 +40,7 @@ def start_daemon(ctx, name, argv):
]
+ argv,
)
- exit_code_is(ctx, 0)
+ runcmd_exit_code_is(ctx, 0)
this["pid"] = int(open("ewww.pid").read().strip())
assert process_exists(this["pid"])