diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-06-13 12:13:06 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-06-13 15:56:29 +0200 |
commit | dfb4b4cbc698aaa4e4f1798d46e3fda349a599a6 (patch) | |
tree | d6921615042860e9d1353ae644d5c368071dff74 /main/uwsgi/uwsgi.pre-install | |
parent | cffed188deeaab6395053d91ca464ce1495b9569 (diff) | |
download | aports-dfb4b4cbc698aaa4e4f1798d46e3fda349a599a6.tar.bz2 aports-dfb4b4cbc698aaa4e4f1798d46e3fda349a599a6.tar.xz |
main/uwsgi: refactor init and cleanup
* remove extraneous patches
* run uwsgi with its own user/group
* add support for POSIX Capabilities (libcap)
* simplify init with emperor mode
* set base emperor config /etc/uwsgi/uwsgi.ini
* set emperor dir to /etc/uwsgi/conf.d
* put pid and socket into /run/uwsgi (created by init)
Diffstat (limited to 'main/uwsgi/uwsgi.pre-install')
-rw-r--r-- | main/uwsgi/uwsgi.pre-install | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/uwsgi/uwsgi.pre-install b/main/uwsgi/uwsgi.pre-install new file mode 100644 index 0000000000..ad1659bf60 --- /dev/null +++ b/main/uwsgi/uwsgi.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +addgroup -S uwsgi 2>/dev/null +adduser -S -D -H -h /dev/null -s /sbin/nologin -G uwsgi -g uwsgi uwsgi 2>/dev/null + +exit 0 |