diff --git a/artificer.rc b/artificer.rc index a2e9538..612ff2d 100644 --- a/artificer.rc +++ b/artificer.rc @@ -15,7 +15,7 @@ artificer_log="/var/log/artificer.log" artificer_chdir="${artificer_root}" command="/usr/sbin/daemon" -command_args="-f -R 5 -P ${pidfile} -o ${artificer_log} /usr/local/bin/deno run --allow-write=${artificer_write} --allow-read=${artificer_read} --allow-net ${artificer_root}/mod.ts" +command_args="-f -R 5 -P ${pidfile} -o ${artificer_log} /usr/local/bin/deno run --allow-write=${artificer_write} --allow-read=${artificer_read} --allow-net --allow-import ${artificer_root}/mod.ts" load_rc_config artificer run_rc_command "$1" diff --git a/artificer.service b/artificer.service index a64e7c0..5a62004 100644 --- a/artificer.service +++ b/artificer.service @@ -6,7 +6,7 @@ After=network.target [Service] Type=simple PIDFile=/run/deno.pid -ExecStart=/root/.deno/bin/deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png,./config.ts,./deps.ts,./src/mod.d.ts --allow-net .\mod.ts +ExecStart=/root/.deno/bin/deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png,./config.ts,./deps.ts,./src/mod.d.ts --allow-net --allow-import .\mod.ts RestartSec=60 Restart=on-failure diff --git a/start.command b/start.command index fb7026a..a3e75fb 100644 --- a/start.command +++ b/start.command @@ -1 +1 @@ -deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png,./config.ts,./deps.ts,./src/mod.d.ts --allow-net .\mod.ts \ No newline at end of file +deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png,./config.ts,./deps.ts,./src/mod.d.ts --allow-net --allow-import mod.ts