From 6d5c457fe3663518ef6164ea88d7be4749adadbd Mon Sep 17 00:00:00 2001 From: "Ean Milligan (Bastion)" Date: Thu, 7 Jul 2022 20:07:28 -0400 Subject: [PATCH] Add rc.d service --- artificer.rc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 artificer.rc diff --git a/artificer.rc b/artificer.rc new file mode 100644 index 0000000..71d0d95 --- /dev/null +++ b/artificer.rc @@ -0,0 +1,16 @@ +#!/bin/sh + +. /etc/rc.subr + +name="artificer" +rcvar="artificer_enable" +start_cmd="artificer_start" + +artificer_start() +{ + cd /var/dbots/TheArtificer/ + deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png --allow-net mod.ts +} + +load_rc_config artificer +run_rc_command "$1"