From 5cc6ccc362b1dd69b53b1a777a58fdbcb36facd8 Mon Sep 17 00:00:00 2001 From: Jeremy Mordkoff Date: Thu, 5 Oct 2017 15:21:07 -0400 Subject: [PATCH] make SO logs persistent Signed-off-by: Jeremy Mordkoff --- installers/install_osm.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installers/install_osm.sh b/installers/install_osm.sh index 4046cfb2..d51cf85d 100755 --- a/installers/install_osm.sh +++ b/installers/install_osm.sh @@ -188,6 +188,12 @@ function configure(){ echo -e " Configuring SO" sudo route add -host $JUJU_CONTROLLER_IP gw $VCA_CONTAINER_IP sudo sed -i "$ i route add -host $JUJU_CONTROLLER_IP gw $VCA_CONTAINER_IP" /etc/rc.local + + # make journaling persistent + lxc exec SO-ub -- mkdir -p /var/log/journal + lxc exec SO-ub -- systemd-tmpfiles --create --prefix /var/log/journal + lxc exec SO-ub -- systemctl restart systemd-journald + echo RIFT_EXTERNAL_ADDRESS=$DEFAULT_IP | lxc exec SO-ub -- tee -a /usr/rift/etc/default/launchpad lxc exec SO-ub -- systemctl restart launchpad -- 2.25.1