Date: Mon, 30 Jan 2017 23:07:37 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 216628] www/uwsgi: setting a nondefault uwsgi_program prevents rc.d script from restarting/stopping uwsgi Message-ID: <bug-216628-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216628 Bug ID: 216628 Summary: www/uwsgi: setting a nondefault uwsgi_program prevents rc.d script from restarting/stopping uwsgi Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: demon@FreeBSD.org Reporter: thomas@gibfest.dk Assignee: demon@FreeBSD.org Flags: maintainer-feedback?(demon@FreeBSD.org) The following line in the uwsgi rc.d script is preventing proper rc.d functionalify when specifying a different uwsgi_program in /etc/rc.conf: : ${uwsgi_procname=3D"${command}"} With this line in place the rc script can start uwsgi (and uses the non-def= ault uwsgi program as it should) but it can't find the running instance, so "sta= tus" "restart" and "stop" do not work. This is because rc.subr uses $procname in check_pidfile() and the line above defaults $procname to $command which is hardcoded to /usr/local/bin/uwsgi further down in the rc.d script. So even if uwsgi_program is set to somethi= ng else, $procname is still set to /usr/local/bin/uwsgi which means rc.subr ca= nt find it. Removing the line above appears to make everything work nicely when using a non-default uwsgi_program. Works for me at least :) Thanks! --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216628-13>