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
```
--
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs