summaryrefslogtreecommitdiff
path: root/elements/os-svc-install
diff options
context:
space:
mode:
authorGregory Haynes <greg@greghaynes.net>2014-09-02 14:03:36 -0700
committerGregory Haynes <greg@greghaynes.net>2014-09-02 14:03:36 -0700
commit9edecd320aa551804e525ccbec6b91e44b14683e (patch)
tree48a181000684161b96764b8aba26f7afd03ffb45 /elements/os-svc-install
parent00957cad1395dff0d750eaeaf089d26b08df9712 (diff)
On ubuntu break app logs into their own files
Currently on ubuntu we are sending all app logs to syslog which munges them all together into /var/log/syslog. This makes debugging a somewhat painful experience. Change-Id: I89f9ddc168f08b90cece7cf5af2e032b2c4f5371
Notes
Notes (review): Verified+2: Jenkins Code-Review+2: lifeless <robertc@robertcollins.net> Code-Review+2: Jan Provaznik <jan.provaznik@gmail.com> Workflow+1: Jan Provaznik <jan.provaznik@gmail.com> Code-Review+1: Steve Kowalik <steven@wedontsleep.org> Submitted-by: Jenkins Submitted-at: Wed, 03 Sep 2014 08:00:47 +0000 Reviewed-on: https://review.openstack.org/118464 Project: openstack/tripleo-image-elements Branch: refs/heads/master
Diffstat (limited to 'elements/os-svc-install')
-rwxr-xr-xelements/os-svc-install/install.d/04-os-svc-install1
-rw-r--r--elements/os-svc-install/rsyslog.d/25-tripleo-apps.conf3
2 files changed, 4 insertions, 0 deletions
diff --git a/elements/os-svc-install/install.d/04-os-svc-install b/elements/os-svc-install/install.d/04-os-svc-install
index 0cc526a..07848c3 100755
--- a/elements/os-svc-install/install.d/04-os-svc-install
+++ b/elements/os-svc-install/install.d/04-os-svc-install
@@ -8,6 +8,7 @@ install -m 0755 -o root -g root $(dirname $0)/../bin/os-svc-enable /usr/local/b
8if [ "$(dib-init-system)" = "upstart" ] ; then 8if [ "$(dib-init-system)" = "upstart" ] ; then
9 install -m 0755 -o root -g root $(dirname $0)/../bin/os-svc-enable-upstart /usr/local/bin/os-svc-enable-upstart 9 install -m 0755 -o root -g root $(dirname $0)/../bin/os-svc-enable-upstart /usr/local/bin/os-svc-enable-upstart
10 install -m 0644 -o root -g root $(dirname $0)/../upstart/os-svc-enable.conf /etc/init/os-svc-enable.conf 10 install -m 0644 -o root -g root $(dirname $0)/../upstart/os-svc-enable.conf /etc/init/os-svc-enable.conf
11 install -m 0644 -o root -g root $(dirname $0)/../rsyslog.d/25-tripleo-apps.conf /etc/rsyslog.d/25-tripleo-apps.conf
11fi 12fi
12 13
13install -m 0755 -o root -g root -d /opt/stack/venvs 14install -m 0755 -o root -g root -d /opt/stack/venvs
diff --git a/elements/os-svc-install/rsyslog.d/25-tripleo-apps.conf b/elements/os-svc-install/rsyslog.d/25-tripleo-apps.conf
new file mode 100644
index 0000000..db7c81b
--- /dev/null
+++ b/elements/os-svc-install/rsyslog.d/25-tripleo-apps.conf
@@ -0,0 +1,3 @@
1# Log each app to its own log file
2$template tripleoAppLogFile,"/var/log/%programname%.log"
3user.notice ?tripleoAppLogFile