Page MenuHomeFreeBSD

net-mgmt/netbox: Add sample rc script
Needs ReviewPublic

Authored by kai on Aug 2 2019, 6:08 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 21, 3:27 AM
Unknown Object (File)
Feb 22 2024, 5:13 PM
Unknown Object (File)
Dec 20 2023, 2:35 AM
Unknown Object (File)
Dec 2 2023, 6:50 AM
Unknown Object (File)
Jul 1 2023, 3:25 AM
Unknown Object (File)
Jun 30 2023, 12:43 PM
Unknown Object (File)
Jun 17 2023, 9:08 PM
Unknown Object (File)
May 9 2023, 2:23 AM
Subscribers
None

Details

Reviewers
matthew
miwi
pi
Summary
  • Add a sample rc script (courtesy by Thomas Kurschel) that only requires www/py-gunicorn to run via the EXAMPLES option.
  • It's a more lightweight variant and doesn't require sysutils/py-supervisor to run.
Test Plan
  • poudriere -> OK
  • Script has been tested several weeks in production -> OK

The script is not added via USE_RC_SUBR to avoid additional dependencies on www/py-gunicorn and the goal in mind to let the user choose which solution (rc script, sysutils/py-supervisor, etc.) suits best for their needs.

Another variant that comes into mind would be to add a non-default option, e.g. GUNICORN, which installs then the rc script and www/py-gunicorn. I'm also open for adding the script via USE_RC_SUBR if this makes more sense.

What do you think about it?

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 25700
Build 24285: arc lint + arc unit

Event Timeline

Add some OPTIONS to allow the user to choose between different WSGI servers? Similarly to how eg. www/rt44 allows choosing between several different ways of running a perl-based web application.

Changed the EXAMPLES option to a non-default option GUNICORN. If users enable that option it installs the Gunicorn WSGI, the contributed script and the required user/group.

Add some OPTIONS to allow the user to choose between different WSGI servers? Similarly to how eg. www/rt44 allows choosing between several different ways of running a perl-based web application.

Thank you for the pointer to www/rt44. I can introduce some more WSGI servers but I haven't tested other alternatives than Gunicorn, yet. If you already used an other WSGI server than Gunicorn together with NetBox in test/production environment I'll be happy to add it as an additional option.