add start command

This commit is contained in:
Ean Milligan
2026-04-23 17:54:07 -04:00
parent f01a3e3abf
commit 0c0c175f5c
2 changed files with 20 additions and 1 deletions

View File

@@ -1 +1 @@
deno run --allow-net --allow-import mod.ts
deno run --allow-net --allow-import --allow-env --allow-read --allow-write --allow-ffi mod.ts

19
xivplan-db.rc Executable file
View File

@@ -0,0 +1,19 @@
#!/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"