#!/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"