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:
20
groupup.rc
Normal file
20
groupup.rc
Normal 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"
|
||||
Reference in New Issue
Block a user