Code:
#!/bin/sh
. /etc/rc.subr
name="dashboard"
rcvar="${name}_enable"
load_rc_config ${name}
: ${dashboard_enable:=NO}
: ${dashboard_user:=root}
: ${dashboard_group:=wheel}
: ${dashboard_pidfile:="/var/run/${name}/${name}.pid"}
start_precmd=". /zroot/www/venv/bin/activate"
pidfile=${dashboard_pidfile}
command_interpreter="/zroot/www/venv/bin/python"
command="/zroot/www/dashboard/manage.py"
command_args="runserver 0.0.0.0:8012" 1
run_rc_command "$1"
It doesn't see that it's running when I check the status, probably because of the pidfile issue.
It also won't start at boot, probably due to the same issue.
What am I missing here?