add start command
This commit is contained in:
@@ -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
19
xivplan-db.rc
Executable 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"
|
||||
Reference in New Issue
Block a user