Details
Details
Diff Detail
Diff Detail
- Repository
- rOPS Nasqueron Operations
- Lint
Lint Passed Severity Location Code Message Advice roles/netbox/server/files/service.sh:41 SC1091 SHELLCHECK - Unit
No Test Coverage - Branch
- netbox-service
- Build Status
Buildable 5339 Build 5620: arc lint + arc unit
Event Timeline
Comment Actions
Some changes planned:
- debug why service.sh doesn't work as sh script but works when called by bash (it was a bash script where I've s/source/.)
- fix pid grok so we can determine status correctly
- pillar to document Python version in venv
roles/netbox/server/files/rc/netbox | ||
---|---|---|
44 | The check on pid to determine if the service is running So currently, we've: WindRiver $ /usr/local/etc/rc.d/netbox status netbox is not running. $ cat /var/run/netbox/netbox.pid 79164 $ ps auxw | grep 79164 netbox 79164 0.0 0.0 42124 28384 - S 23:04 0:00.12 /srv/netbox/venv/bin/python3.11 /srv/netbox/venv/bin/gunicorn --pid /var/run/netbox/netbox.pid --pythonpath / In that context, $procname needs to be be "/srv/netbox/venv/bin/python3.11" | |
46 | ||
roles/netbox/server/service.sls | ||
30 |
Python 3.11 version should be taken from a pillar, as we aren't dependant of the current OS default Python version. |