diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2015-04-27 15:41:26 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-05-08 09:56:30 +0000 |
commit | 18bd5288629a1891b9c0a38bded6b5970c264175 (patch) | |
tree | 1c3776d5348f057bcc72422fcac015aaeedafe0c /openstack/usr/lib/systemd/system/openstack-ceilometer-compute.service | |
parent | 08b86b8d76c3abce0588387f50c213a8b5d23b2b (diff) | |
download | definitions-18bd5288629a1891b9c0a38bded6b5970c264175.tar.gz |
openstack: improve services' logging
The OpenStack services write their log to stderr even when use_syslog
was set to True in the configuration file. This is then captured by
journald, resulting in duplicated entries on the log. Set
StandardOutput=null and StandardError=null in the unit files to prevent
this.
As the services log is being dumped on journald, there is no need to
duplicate the log in separate log files, so remove --log-file from the
unit files as well.
Last but not least, enable writing to the syslog for Ironic and
Keystone.
Change-Id: I7808e8116fc92ecb807f700fd94c9ecf4ee13be2
Diffstat (limited to 'openstack/usr/lib/systemd/system/openstack-ceilometer-compute.service')
-rw-r--r-- | openstack/usr/lib/systemd/system/openstack-ceilometer-compute.service | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openstack/usr/lib/systemd/system/openstack-ceilometer-compute.service b/openstack/usr/lib/systemd/system/openstack-ceilometer-compute.service index 95c6d87d..ccb78e2a 100644 --- a/openstack/usr/lib/systemd/system/openstack-ceilometer-compute.service +++ b/openstack/usr/lib/systemd/system/openstack-ceilometer-compute.service @@ -7,7 +7,9 @@ Wants=network-online.target [Service] Type=simple User=ceilometer -ExecStart=/usr/bin/ceilometer-agent-compute --config-file /etc/ceilometer/ceilometer.conf --logfile /var/log/ceilometer/compute.log +StandardOutput=null +StandardError=null +ExecStart=/usr/bin/ceilometer-agent-compute --config-file /etc/ceilometer/ceilometer.conf [Install] WantedBy=multi-user.target |