// showcase's long-running process — a `process` that stays up. // // **Runs on the machine rather than in a container**, which is the whole point of the process // resource: this is the mesh's own code, it needs no isolation from the mesh, and it should not // need an image to run. const greeting = process.env.SHOWCASE_GREETING ?? "hello"; const every = Number(process.env.SHOWCASE_EVERY_SECONDS ?? "30") * 1000; console.log(`[showcase] up, saying ${greeting} every ${every / 1000}s`); // A daemon that stops is not a daemon, so this does not exit. The unit restarts it if it does, // which is the machine's job rather than this file's. setInterval(() => console.log(`[showcase] ${greeting}`), every);