*
Jes Olson j3s@c3f.net
Mon, 02 Jan 2023 21:11:47 -0800
2 files changed,
52 insertions(+),
12 deletions(-)
M
README
→
README
@@ -1,28 +1,28 @@
- shrapnl - a simple task machine + enby + a simple binary manager features - - watch remote resources for changes - git repos, files, websites - - trigger actions periodically, or when resources change - - execute periodic tasks or full processes - - small & simple to get up and running + - small & easy to understand + - minimal configuration + - fetch binaries, or fetch git repos & build them + - automatic process management & isolation + - automatic stdout/stderr logs for all launched processes ideations kind of like "nomad-lite" - warnings - shrapnl is brand spanking new - there is no process isolation by default, for now + !warning + there is no process isolation _yet_ usage - shrapnl - a simple task machine + enby + a simple binary manager commands - [d]aemon [config] - Run shrapnl in daemon-mode. + [d]aemon [config] - Run enby in daemon-mode. [l]ogs [task] - Print stdout/stderr for a task. [r]eload - Reload config file. [s]tatus - Check the status of all tasks.@@ -32,3 +32,7 @@ todo
strong process isolation by default on linux fail on bsd? + + + credits + inspiration from pf, smtpd, kanshi, nomad
M
example-config
→
example-config
@@ -74,3 +74,39 @@ > created wuji resource
when resource. + + + + + + + +# task params +# fetch [url]: fetch resource from url +# every [interval]: execute this task every $interval +# exec +# + + + +# fetch params +# changed: what to do if the remote file changes +binary j3s.sh { + fetch https://git.j3s.sh/j3s.sh + exec go build . +} + +task run my website { + require binary j3s.sh + if binary j3s.sh changes restart task + command j3s.sh + env whatever + args -one -two -three +} + + +fetch an artifact +run a process +when the fetched artifact changes, restart the process + +