as a work-around I did the following:

mv /usr/bin/gnocchi-api /usr/bin/gnocchi-wsgi-api
cat << 'EOF' >> /usr/bin/gnocchi-api
#!/bin/sh
GID=$(/usr/bin/id -g gnocchi)
/usr/local/bin/uwsgi /etc/gnocchi/uwsgi.ini --gid $GID
EOF
cat << 'EOF' >> /etc/gnocchi/uwsgi.ini
[uwsgi]
http = 0.0.0.0:8041
wsgi-file = /usr/bin/gnocchi-wsgi-api
master = true
die-on-term = true
threads = 32
processes = 32
enabled-threads = true
thunder-lock = true
plugins = python
buffer-size = 65535
lazy-apps = true
add-header = Connection: close
EOF
service gnocchi-api restart

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1707642

Title:
  Broken systemd unit for gnocchi-api

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnocchi/+bug/1707642/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to