service update

This commit is contained in:
Ean Milligan (Bastion) 2022-07-07 20:37:32 -04:00
parent 28e697efa2
commit 2346a6d994
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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