From b1c81aff78b7abf680882cea842e3100561afd0d Mon Sep 17 00:00:00 2001 From: "Ean Milligan (Bastion)" Date: Thu, 7 Jul 2022 20:41:02 -0400 Subject: [PATCH] service update --- artificer.rc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/artificer.rc b/artificer.rc index 65a8822..ea0db19 100644 --- a/artificer.rc +++ b/artificer.rc @@ -6,15 +6,8 @@ name="artificer" rcvar="artificer_enable" -start_cmd="artificer_start" -pidfile="/var/dbots/TheArtificer/artificer.pid" - -artificer_start() -{ - cd /var/dbots/TheArtificer/ - /usr/local/bin/deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png --allow-net mod.ts -} +command="/usr/local/bin/deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png --allow-net /var/dbots/TheArtificer/mod.ts" load_rc_config artificer run_rc_command "$1"