share/sh4rin-openbsd-rc.d

19 lines
327 B
D
Raw Normal View History

2022-10-25 10:24:41 +02:00
#!/bin/ksh
#
2024-10-09 10:35:08 +02:00
# $OpenBSD: sh4rin.rc,v 0.0.2 2023/04/24
2022-10-25 10:24:41 +02:00
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
2024-10-09 10:35:08 +02:00
rc_bg=YES
2022-10-25 10:24:41 +02:00
rc_start() {
2024-10-09 10:35:08 +02:00
rc_exec "${env} ${daemon} 2>&1 | logger -t sh4rin &"
2022-10-25 10:24:41 +02:00
}
rc_cmd $1