1
1
mirror of https://github.com/Burn-E99/GroupUp.git synced 2026-06-04 00:43:49 -04:00

Add rc service file

This commit is contained in:
Ean Milligan (Bastion)
2023-04-29 21:23:49 -04:00
parent ad3d854469
commit 022170a230

20
groupup.rc Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/sh
# PROVIDE: groupup
. /etc/rc.subr
name="groupup"
rcvar="groupup_enable"
pidfile="/var/dbots/GroupUp/groupup.pid"
groupup_root="/var/dbots/GroupUp"
groupup_write="./logs/"
groupup_log="/var/log/groupup.log"
groupup_chdir="${groupup_root}"
command="/usr/sbin/daemon"
command_args="-f -R 5 -P ${pidfile} -o ${groupup_log} /usr/local/bin/deno run --allow-write=${groupup_write} --allow-net ${groupup_root}/mod.ts"
load_rc_config groupup
run_rc_command "$1"