On Tue, Jan 05, 2021 at 02:41:51PM -0500, ben wrote: > Hello, Misc; > > I've been playing around with rc.d scripts and I've stumbled upon an issue in > my git daemon script: > > #!/bin/ksh > # > # $OpenBSD: gitdaemon.rc,v 1.4 2019/07/16 09:56:55 stsp Exp $ > > daemon="/usr/local/libexec/git/git-daemon --detach" > daemon_flags=" --detach --export-all --reuseaddr --base-path=/home/git > /home/git" > daemon_user="git" > > . /etc/rc.d/rc.subr > > pexp=git > > rc_cmd $1
The original version of this script installed by the port contains rc_reload=NO and also uses a very different pexp. Why did you see a need to modify this script? Could you not simply set these options in /etc/rc.conf.local and use the unmodified script? gitdaemon_flags=--export-all --reuseaddr --base-path=/home/git /home/git gitdaemon_user=git