TheArtificer/artificer.rc

16 lines
438 B
Plaintext
Raw Normal View History

2022-07-07 17:07:28 -07:00
#!/bin/sh
2022-07-07 17:20:44 -07:00
# PROVIDE: artificer
2022-07-07 17:07:28 -07:00
. /etc/rc.subr
name="artificer"
rcvar="artificer_enable"
2022-07-07 17:50:16 -07:00
pidfile="/var/dbots/TheArtificer/artificer.pid"
2022-07-07 17:07:28 -07:00
2022-07-07 17:50:16 -07:00
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"
2022-07-07 17:07:28 -07:00
load_rc_config artificer
run_rc_command "$1"