18 lines
319 B
Bash
18 lines
319 B
Bash
#!/bin/ksh
|
|
#
|
|
# $OpenBSD: sh4rin.rc,v 0.0.1 2022/10/25
|
|
|
|
daemon="/usr/local/bin/share"
|
|
daemon_user="_sh4rin"
|
|
env="UPLOADS=/home/_sh4rin/uploads/ PORT=3000 BASE_URL=https://sh4r.in RPROXY=true"
|
|
|
|
. /etc/rc.d/rc.subr
|
|
|
|
rc_usercheck=NO
|
|
|
|
rc_start() {
|
|
${rcexec} "${env} ${daemon} 2>&1 | logger -t sh4rin &"
|
|
}
|
|
|
|
rc_cmd $1
|