Comment 6 for bug 1707642

Revision history for this message
KI4RBC (mikemcdonough) wrote :

So scratch my earlier workaround or patching. After reading what /etc/init/gnocchi-api.conf is doing around lines 31 to 36 I found I can modify startup behavior by creating `/etc/defaults/gnocchi-api` and adding the following contents

```bash
DAEMON_ARGS="--port 8041 -- --log-file=/var/log/gnocchi/gnocchi-api.log"
CONFIG_FILE="/etc/gnocchi/gnocchi.conf"
USE_SYSLOG="no"
USE_LOGFILE="yes"
```

It seems the extra "--" is not being passed to the start-stop-daemon function

Now my only problem is that API requests are still showing up in `/var/log/syslog` even though this is not what I see in the arguments reported by systemctl status

```bash
   CGroup: /system.slice/gnocchi-api.service
           └─110578 /usr/bin/python2.7 /usr/bin/gnocchi-api --port 8041 -- --log-file=/var/log/gnocchi/gnocchi-api.log
```