diff options
Diffstat (limited to 'ewww.py')
-rw-r--r-- | ewww.py | 22 |
1 files changed, 2 insertions, 20 deletions
@@ -83,30 +83,12 @@ def start_server(ctx, filename=None): config = yaml.safe_dump(config) _write(filename, config) - _run( - ctx, - [ - "/usr/sbin/daemonize", - "-c", - os.getcwd(), - "-p", - "ewww.pid", - "-o", - "ewww.stdout", - "-e", - "ewww.stderr", - _binary("ewww"), - filename, - ], - ) - _run_exit(ctx, 0) - - ctx["pid"] = int(open("ewww.pid").read().strip()) + start_daemon(ctx, "ewww", [_binary("ewww"), filename]) # Stop previously started server. def stop_server(ctx): - os.kill(ctx["pid"], signal.SIGKILL) + stop_daemon(ctx, "ewww") # Make a HTTP request. |