share/sh4rin-openbsd-rc.d
2024-10-09 10:35:08 +02:00

19 lines
327 B
Bash

#!/bin/ksh
#
# $OpenBSD: sh4rin.rc,v 0.0.2 2023/04/24
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_bg=YES
rc_start() {
rc_exec "${env} ${daemon} 2>&1 | logger -t sh4rin &"
}
rc_cmd $1