> have u put anything in rc.conf.local ? Have a look at rc.d(8) for how this works, there are examples also.
No need for webapp_flags in /etc/rc.conf.local if you are happy with the defaults already defined in the rc.d script, but you can override the default values with an entry in rc.conf.local. "rcctl enable webapp" will add "webapp" to the pkg_scripts variable in /etc/rc.conf.local which will start the flask app on boot. > On April 14, 2020 7:25:05 PM GMT+02:00, Daniel Winters <dan...@tydirium.org> > wrote: > >>> Hey, im trying to run a python app with gunicon-3 and rcctl > >>> but rcctl start guni just returns ok as it was started and doesnt > >start > >>> it. what am i doing wrong? Thanks > > > >I am successfully running a flask apps (named "webapp" as an example) > >with gunicorn using the following /etc/rc.d/webapp script: > > > >#!/bin/ksh > > > >daemon="/usr/local/bin/gunicorn-3 -D" > >daemon_user="www" > >daemon_flags="--bind 127.0.0.1:8000 --chdir /var/www/webapp --name > >webapp webapp:app" > > > >. /etc/rc.d/rc.subr > > > >pexp=".*gunicorn: master \[webapp\].*" > > > >rc_cmd $1 > > > >Cheers, > >Daniel