11 lines
317 B
Plaintext
11 lines
317 B
Plaintext
|
#!/sbin/openrc-run
|
||
|
|
||
|
description="NetBox WSGI service"
|
||
|
|
||
|
command="{{ user_info.home }}/app/venv/bin/gunicorn"
|
||
|
command_args="--pythonpath {{ user_info.home }}/app/netbox --config {{ user_info.home }}/gunicorn.py netbox.wsgi"
|
||
|
command_user="{{ user }}:{{ user }}"
|
||
|
|
||
|
command_background=true
|
||
|
pidfile="/run/${RC_SVCNAME}.pid"
|