Files
XIVPlan-DB/xivplan-db.rc
Ean Milligan 1ceae4d158 more _
2026-04-23 18:00:21 -04:00

20 lines
526 B
Bash
Executable File

#!/bin/sh
# PROVIDE: xivplan_db
. /etc/rc.subr
name="xivplan_db"
rcvar="xivplan_db_enable"
pidfile="/var/webapps/XIVPlan-DB/xivplan_db.pid"
xivplan_db_root="/var/webapps/XIVPlan-DB"
xivplan_db_log="/var/log/xivplan_db.log"
xivplan_db_chdir="${xivplan_db_root}"
command="/usr/sbin/daemon"
command_args="-f -R 5 -P ${pidfile} -o ${xivplan_db_log} /usr/local/bin/deno run --allow-net --allow-import --allow-env --allow-read --allow-write --allow-ffi ${xivplan_db_root}/mod.ts"
load_rc_config xivplan-db
run_rc_command "$1"