From: Jeremy Mordkoff Date: Thu, 5 Oct 2017 19:21:07 +0000 (-0400) Subject: make SO logs persistent X-Git-Tag: v3.0.0rc6~2 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=refs%2Fchanges%2F32%2F5532%2F1;p=osm%2Fdevops.git make SO logs persistent Signed-off-by: Jeremy Mordkoff --- 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