diff --git a/artificer.rc b/artificer.rc index 3426958..65a8822 100644 --- a/artificer.rc +++ b/artificer.rc @@ -13,7 +13,7 @@ pidfile="/var/dbots/TheArtificer/artificer.pid" 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 + /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 } load_rc_config artificer diff --git a/artificer.service b/artificer.service index 493d0e0..e008099 100644 --- a/artificer.service +++ b/artificer.service @@ -6,7 +6,7 @@ After=network.target [Service] Type=simple PIDFile=/run/deno.pid -ExecStart=deno run --allow-write=./logs/,./src/endpoints/gets/heatmap.png --allow-read=./src/solver/,./src/endpoints/gets/heatmap-base.png --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 --allow-net .\mod.ts RestartSec=60 Restart=on-failure