Add rc.d service

This commit is contained in:
Ean Milligan (Bastion) 2022-07-07 20:07:28 -04:00
parent 0055690360
commit 6d5c457fe3
1 changed files with 16 additions and 0 deletions

16
artificer.rc Normal file
View File

@ -0,0 +1,16 @@
#!/bin/sh
. /etc/rc.subr
name="artificer"
rcvar="artificer_enable"
start_cmd="artificer_start"
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
}
load_rc_config artificer
run_rc_command "$1"