mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
uwsgi: add modular package superseeding uwsgi-cgi
Provide the minimal applications and plugins for: cgi, filelog, syslog and python3. More plugins can be added if needed by other packages. Autostart uwsgi in emperor mode loading vassals on demand. For now, include luci-support (maybe it will be moved to another package), which uses the syslog plugin by default. Signed-off-by: Peter Stadler <peter.stadler@student.uibk.ac.at>
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
[uwsgi]
|
||||
strict = true
|
||||
pidfile = /var/run/uwsgi.pid
|
||||
emperor = /etc/uwsgi/vassals/*.ini
|
||||
early-emperor = true
|
||||
vacuum = true
|
||||
emperor-on-demand-directory = /var/run/
|
||||
emperor-required-heartbeat = 99
|
||||
vassal-set = die-on-idle=true
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh /etc/rc.common
|
||||
|
||||
START=79
|
||||
USE_PROCD=1
|
||||
|
||||
start_service() {
|
||||
procd_open_instance
|
||||
procd_set_param command /usr/sbin/uwsgi --ini /etc/uwsgi/emperor.ini
|
||||
procd_set_param stderr 1
|
||||
procd_set_param file /etc/uwsgi/emperor.ini
|
||||
procd_set_param respawn
|
||||
procd_close_instance
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user