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 Upon running starting the script, the daemon starts, however, upon restarting the script doesn't restart, that is, I don't get two gitdaemon(ok) messages (one for stopping one for starting), and when checking the pid the process has not restarted. Am I missing somthing in my script or is it just an issue with git? Thank you in advance. Ben Raskin