D
Deno

help

Deno process watcher. How?

BBairdy3/1/2023
This code when compile, runs a simple http server.
import { serve } from "https://deno.land/std@0.178.0/http/server.ts";
serve((_req) => new Response("Hello, world"));
import { serve } from "https://deno.land/std@0.178.0/http/server.ts";
serve((_req) => new Response("Hello, world"));
Can a separate Deno script be used to watch this process running and if it crashes for whatever reason, it restarts? In Linux you can configure unit file for it but I was wondering if Deno is currently able to watch a different process and restart it if it has exited.
UUUnknown User3/3/2023
3 Messages Not Public
Sign In & Join Server To View

Looking for more? Join the community!