From 18bd5288629a1891b9c0a38bded6b5970c264175 Mon Sep 17 00:00:00 2001 From: Tiago Gomes Date: Mon, 27 Apr 2015 15:41:26 +0000 Subject: 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 --- openstack/usr/lib/systemd/system/openstack-ironic-api.service | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openstack/usr/lib/systemd/system/openstack-ironic-api.service') diff --git a/openstack/usr/lib/systemd/system/openstack-ironic-api.service b/openstack/usr/lib/systemd/system/openstack-ironic-api.service index 8d05d424..7b9357f2 100644 --- a/openstack/usr/lib/systemd/system/openstack-ironic-api.service +++ b/openstack/usr/lib/systemd/system/openstack-ironic-api.service @@ -7,6 +7,8 @@ Wants=network-online.target [Service] Type=simple User=ironic +StandardOutput=null +StandardError=null ExecStart=/usr/bin/ironic-api --config-file /etc/ironic/ironic.conf [Install] -- cgit v1.2.1