#!/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