Re: Startup script for Netbox: can't start with a user and can't stop

2024-07-25 Thread Mik J
Hello Stuart, Thank you for your answer. 1) >but you start as _netbox: >> daemon_user="_netbox" >that won't work, it needs root to change uid (to www). I finally chose to run it as _netbox and change this line daemon_flags="--name netbox --pid /var/run/netbox.pid --user=_netbox --group=_netbox -

Re: Startup script for Netbox: can't start with a user and can't stop

2024-07-25 Thread Stuart Henderson
here you tell it to run it as www: > daemon_flags="--name netbox --pid /var/run/netbox.pid --user=www --group=www > --config=${_BASEDIR}/gunicorn.py" > daemon_flags="${daemon_flags} --log-level=info --log-file=- netbox.wsgi" but you start as _netbox: > daemon_user="_netbox" that won't work, it