summaryrefslogtreecommitdiff
path: root/subplot/daemon.py
diff options
context:
space:
mode:
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"])