From bcc75f5cde251c449e37e431b8bc5765a7986003 Mon Sep 17 00:00:00 2001 From: "Ean Milligan (Bastion)" Date: Fri, 8 Jul 2022 01:36:24 -0400 Subject: [PATCH] Final update to rc service --- artificer.rc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/artificer.rc b/artificer.rc index 2847a7e..309a695 100644 --- a/artificer.rc +++ b/artificer.rc @@ -8,8 +8,13 @@ name="artificer" rcvar="artificer_enable" pidfile="/var/dbots/TheArtificer/artificer.pid" +artificer_root="/var/dbots/TheArtificer" +artificer_write="./logs/,./src/endpoints/gets/heatmap.png" +artificer_read="./src/solver/,./src/endpoints/gets/heatmap-base.png,./src/endpoints/gets/heatmap.png" + +artificer_chdir="${artificer_root}" command="/usr/sbin/daemon" -command_args="-c -f -P ${pidfile} -r /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" +command_args="-c -f -P ${pidfile} /usr/local/bin/deno run --allow-write=${artificer_write} --allow-read=${artificer_read} --allow-net ${artificer_root}/mod.ts" load_rc_config artificer run_rc_command "$1"